Dialogic Dialogic Global Call IP IP Phone User Manual


 
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);
.
.
.
4.17.2 Nonstandard Facility Message (Q.931)
To send a nonstandard Facility message, use the gc_Extension( ) function in asynchronous mode
with an ext_id (extension ID) of IPEXTID_SENDMSG. The target_type should be
GCTGT_GCLIB_CRN and the target_id should be the actual CRN. The GC_PARM_BLK must
contain parameter elements that identify the message type, the nonstandard data, and the
nonstandard data identifier. At the sending end, reception of a GCEV_EXTENSIONCMPLT event
indicates that the message has been sent.
The parameter element that identifies the message type is:
IPSET_MSG_Q931
IPPARM_MSGTYPE
value = IP_MSGTYPE_Q931_FACILITY
The parameter element for the Nonstandard Data data is:
IPSET_NONSTANDARDDATA
IPPARM_NONSTANDARDDATA_DATA
value = Nonstandard Data string, max length = max_parm_data_size (configurable at
library start-up)
The parameter element for the Nonstandard Data identifier is one (and only one) of the following:
IPSET_NONSTANDARDDATA
IPPARM_NONSTANDARDDATA_OBJID
value = array of unsigned integers, max length = MAX_NS_PARM_OBJID_LENGTH
IPSET_NONSTANDARDDATA
IPPARM_H221NONSTANDARD
value = IP_H221NONSTANDARD structure
When the Dialogic
®
Global Call API library receives a nonstandard Facility message, it generates a
GCEV_EXTENSION event with the ext_id value IPEXTID_RECEIVEMSG. The extevtdatap
field in the METAEVENT structure for the GCEV_EXTENSION event is a pointer to an