Dialogic Dialogic Global Call IP IP Phone User Manual


 
Dialogic
®
Global Call IP Technology Guide — November 2007 469
Dialogic Corporation
char *pDestAddrBlk = "127.0.0.1";
char *pDestAddrStr = "TEL:111,TEL:222,76543";
/* set GCLIB_ADDRESS_BLK with destination string & type*/
strcpy(gcmkbl.gclib->destination.address,pDestAddrBlk);
gcmkbl.gclib->destination.address_type = GCADDRTYPE_IP;
gclib_mkbl.ext_datap = target_datap;
/* calling the function with the MAKECALL_BLK*/
gc_MakeCall(ldev, &crn, pDestAddrStr, &gcmkbl, MakeCallTimeout,EV_ASYNC);
Scenario 3 – Making a call to a known IP address, setting a number of H.225 aliases, and setting
the Q.931 calledPartyNumber:
char *pDestAddrBlk = "127.0.0.1";
char *pDestAddrStr = "TEL:111,TEL:222,NAME:myName";
char *IpPhoneList= "003227124311";
/* insert phone list */
gc_util_insert_parm_ref(&target_datap,
IPSET_CALLINFO,
IPPARM_PHONELIST,
(unsigned char)(strlen(IpPhoneList)+1),
IpPhoneList);
/* set GCLIB_ADDRESS_BLK with destination string & type*/
strcpy(gcmkbl.gclib->destination.address,pDestAddrBlk);
gcmkbl.gclib->destination.address_type = GCADDRTYPE_IP;
gclib_mkbl.ext_datap = target_datap;
/* calling the function with the MAKECALL_BLK*/
gc_MakeCall(ldev, &crn, pDestAddrStr, &gcmkbl, MakeCallTimeout,EV_ASYNC);
Scenario 4 – Making a call to a known IP address, setting a number of H.225 aliases, and setting
the Q.931 calledPartyNumber:
char *pDestAddrBlk = "127.0.0.1";
char *IpPhoneList= "TEL:003227124311,TEL:444,TEL:222,TEL:1234,171717";
/* insert phone list */
gc_util_insert_parm_ref(&target_datap,
IPSET_CALLINFO,
IPPARM_PHONELIST,
(unsigned char)(strlen(IpPhoneList)+1),
IpPhoneList);
gclib_mkbl.ext_datap = target_datap;
/* set GCLIB_ADDRESS_BLK with destination string & type*/
strcpy(gcmkbl.gclib->destination.address,pDestAddrBlk);
gcmkbl.gclib->destination.address_type = GCADDRTYPE_IP;
gclib_mkbl.ext_datap = target_datap;
/* calling the function with the MAKECALL_BLK, and numberstr
parameter = NULL */
gc_MakeCall(ldev, &crn, NULL, &gcmkbl, MakeCallTimeout,EV_ASYNC);
Scenario 5 – While registered, making a call, via the gatekeeper, to a registered entity (using a
known H.323 ID), setting a number of H.225 aliases, and setting the Q.931 calledPartyNumber:
char *pDestAddrBlk = " RegisteredRemoteGW "; /* The alias of the remote (registered) entity */
char *pDestAddrStr = "TEL:111,TEL:222,987654321";