Dialogic
®
System Release 6.1 CompactPCI for Windows
®
Release Update 87
gc_util_insert_parm_ref(&pParmBlock,
IPSET_ CALLINFO,
IPPARM_CDPN_NUMBERING_PLAN_ID,
sizeof(unsigned char),
&cdpn_npi);
gc_util_insert_parm_ref(&pParmBlock,
IPSET_ CALLINFO,
IPPARM_CGPN_SCREENING_INDICATOR,
sizeof(unsigned char),
&cgpn_si);
gc_util_insert_parm_ref(&pParmBlock,
IPSET_ CALLINFO,
IPPARM_CGPN_PRESENTATION_INDICATOR,
&cgpn_pi);
/*. .. Continue Main processing. … call gc_MakeCall() */
}
1.30.5 Generating CPN Fields in a SETUP Message
If you choose to insert the CPN data into the GC_MAKECALL_BLK using the
gc_SetUserInfo( ) function, refer to the Dialogic
®
Global Call IP Technology Guide for
details on how this can be done.
After setting the CPN signaling message fields as described in the Setting Up CPN Fields
in the GC_PARM_BLK Data Structure section, the user application calls the
gc_MakeCall( ) function, passing it a pointer to the GC_MAKECALL_BLK.
1.30.6 Retrieving CPN Information
When the underlying H.323 stack is enabled to retrieve incoming call info fields, including
CPN information, any CPN fields detected in an associated H.225 message will be
retrieved and stored in Global Call.
Use the gc_Extension( ) function to retrieve the CPN data within any valid incoming
H.225 message containing CPN fields, while a call is in any state, after the OFFERED
state. This is similar to receiving other call related information via the
GCEV_EXTENSIONCMPLT event received as a termination event to the
gc_Extension( ) function.
Set the target_type to GCTGT_GCLIB_CRN. Set the target_id to the actual CRN. If
incoming CPN data is available, the information is included with the corresponding
GCEV_EXTENSIONCMPLT asynchronous termination event.
The extevtdatap field in the METAEVENT structure for the GCEV_EXTENSIONCMPLT
event is a pointer to an EXTENSIONEVTBLK structure that contains a GC_PARM_BLK
with the requested CPN information.
When trying to retrieve the CPN information, it is necessary to specify each of the CPN
parameters in the extension request, for which information from the stack is needed.
Comentarios a estos manuales