Dialogic Global Call IP Benutzerhandbuch

Seite von 604
326
Dialogic Corporation
T.38 Fax device with a media device before calling the gc_MakeCall( ) function to actually send 
the fax information. The association only applies to a single call and can be accomplished by 
calling the gc_SetUserInfo( ) function on a line device for a single call, or in the 
GC_MAKECALL_BLK structure when calling gc_MakeCall( )
Note:
If using gc_SetUserInfo( ) to make the association on a line device, the duration must be set to 
GC_SINGLECALL rather than GC_ALLCALLS. 
The following code provides an example: 
INT32 processEvtHandler()
{
   GC_PARM_BLK *parmblkp = NULL;
   :
   :
   switch (evtType)
   {
      case GCEV_OPENEX:
         /* Set manual mode */
         gc_util_insert_parm_val(&parmblkp, IPSET_CONFIG, IPPARM_OPERATING_MODE, 
               sizeof(int), IP_MANUAL_MODE);
         gc_SetConfigData(GCTGT_GCLIB_NETIF, boarddev, parmblkp, 0,
               GCUPDATE_IMMEDIATE, &t, EV_ASYNC);
         gc_util_delete_parm_blk(parmblkp);
         /* Associate T.38 device with media device */
         ipConnect.version = 0x100;
         ipConnect.mediaHandle = pline->mediaH;
         ipConnect.faxHandle = pline->faxH;
         ipConnect.connectType = IP_FULLDUP;
         gc_util_insert_parm_ref(&(libBlock.ext_datap), IPSET_FOIP, IPPARM_T38_CONNECT, 
              sizeof(IP_CONNECT), (void *)(&ipConnect));
         gc_SetUserInfo(GCTGT_GCLIB_CHAN, pline->LDEV, parmblkp, GC_SINGLECALL);
         gc_util_delete_parm_blk(parmblkp);
         /* Make call now */
         gc_MakeCall();
      break;
      case GCEV_CONNECTED:
         fx_sendfax();
      break;
   }
   :
   :
}
4.26.7
Receiving a T.38 Fax in a Session Without Audio 
Established 
The Dialogic
®
 Global Call API supports the reception of fax information in a session that does not 
already have an audio connection established. The application can receive a GCEV_OFFERED 
event with a T.38 Fax request even if the session has no audio connection. 
Note:
The parameter block associated with the GCEV_OFFERED event indicates an incoming T.38 Fax 
request if T.38 Fax is the only media offered in the incoming request. If more than T.38 media is 
offered, no specific T.38 information will be associated with offered event.