4.4.6. Specifying Nonstandard Control Information When Using H.323
Use the gc_SetUserInfo( ) function with a duration parameter set to GC_SINGLECALL to set nonstandard control information. If the duration parameter is set to GC_ALLCALLS, the function will fail.
The following parameter set ID and parameter IDs should be used when setting up the GC_PARM_BLK pointed by the infoparmblkp function parameter:
See Section 6.15, IPSET_NONSTANDARDCONTROL Parameter Set for more information. The following code example shown how to set nonstandard data elements:
IP_H221NONSTANDARD appH221NonStd; appH221NonStd.country_code = 181; appH221NonStd.extension = 31; appH221NonStd.manufacturer_code = 11; char* pControl = "Control String"; char* pOid = "1 22 333 4444"; choiceOfNSControl = 1; /* App decides which type of object identifier to use */ /* setting NS Control */ gc_util_insert_parm_ref(&pParmBlock, IPSET_NONSTANDARDCONTROL, IPPARM_NONSTANDARDDATA_DATA, (unsingned char)(strlen(pControl)+1), pControl); if (choiceOfNSControl) /* App decide the CHOICE of OBJECTIDENTIFIER. It can not set both objid & h221 */ { gc_util_insert_parm_ref(&pParmBlock, IPSET_NONSTANDARDCONTROL, IPPARM_H221NONSTANDARD, (unsingned char)sizeof(IP_H221NONSTANDARD), &appH221NonStd); } else { gc_util_insert_parm_ref(&pParmBlock, IPSET_NONSTANDARDCONTROL, IPPARM_NONSTANDARDDATA_OBJID, (unsingned char)(strlen(pOid)+1), pOid); }
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation