4.9.1. Nonstandard UII Message (H.245)
Use the gc_Extension( ) function in asynchronous mode with an ext_ id (extension ID) of IPEXTID_SENDMSG to send nonstandard UII messages. The target_type should be GCTGT_GCLIB_CRN and the target_id should be the actual CRN. At the sending end, a GCEV_EXTENSIONCMPLT event is received indicating that the message has been sent. At the receiving end, a GCEV_EXTENSION event with the same ext_id value is generated. The extevtdatap field in the METAEVENT structure for the GCEV_EXTENSION event is a pointer to an EXTENSIONEVTBLK structure which in turn contains a GC_PARM_BLK that includes all of the data in the message.
The relevant parameter set IDs and parameter IDs for this purpose are:
- IPSET_MSG_H245
- IPSET_NONSTANDARDDATA
- Either
- IPPARM_NONSTANDARDDATA_DATA - Actual nonstandard data. The maximum length is MAX_NS_PARM_DATA_LENGTH (128).
- IPPARM_NONSTANDARDDATA_OBJID - Object ID string. The maximum length is MAX_NS_PARM_OBJID_LENGTH (40).
- or
- IPPARM_NONSTANDARDDATA_DATA - Actual nonstandard data. The maximum length is MAX_NS_PARM_DATA_LENGTH (128).
- IPPARM_H221NONSTANDARD - H.221 nonstandard data identifier.
- Note: The message type (IPPARM_MSGTYPE) is mandatory. At least one other information element must be included.
See Section 6.12, IPSET_MSG_Q931 Parameter Set and Section 6.14, IPSET_NONSTANDARDDATA Parameter Set for more information.
. . . /* H245 UII with ObjId and data */ rc = gc_util_insert_parm_val(&t_PrmBlkp, IPSET_MSG_H245, IPPARM_MSGTYPE, sizeof(int), IP_MSGTYPE_H245_INDICATION); rc = gc_util_insert_parm_ref(&t_PrmBlkp, IPSET_NONSTANDARDDATA, IPPARM_NONSTANDARDDATA_OBJID, ObjLen+1, ObjId); rc = gc_util_insert_parm_ref(&t_PrmBlkp, IPSET_NONSTANDARDDATA, IPPARM_NONSTANDARDDATA_DATA, DataLen+1, data); if (rc == -1) { printf("Fail to insert parm"); return -1; } else printf("Sending IP H245 UII Message"); gc_Extension(GCTGT_GCLIB_CRN, crn, IPEXTID_SENDMSG, t_PrmBlkp, &t_RetBlkp, EV_ASYNC); gc_util_delete_parm(t_PrmBlkp); . . .
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation