Dialogic
®
System Release 6.1 CompactPCI for Windows
®
Release Update 86
1.30.4 Setting Up CPN Fields in the GC_PARM_BLK Data
Structure
Before calling the gc_MakeCall( ) function, you must set up the CPN fields to be included
in the GC_PARM_BLK data structure. The GC_PARM_BLK should include the existing
parameter set ID IPSET_CALLINFO and the newly defined parameter IDs described in
the New Parameter IDs section, which specifies which CPN fields are to be set in the
parameter block structure of a Make Call block.
To set up the CPN fields in the GC_PARM_BLK structure, call the
gc_util_insert_parm_ref( ) function.
Code Example
The following is an example of how to specify the CPN fields for sending.
#include <stdio.h>
#include <string.h>
#include <gcip.h>
#include <.h>
void main()
{
CPN_TON cgpn_ton, cdpn_ton;
CPN_NPIcgpn_npi, cdpn_npi;
CPN_SIcgpn_si;
CPN_PIcgpn_pi;
GC_PARM_BLKPpParmBlock;
/*. . Main Processing….*/
/* Set CPN fields in the Make Call Block to be sent out via SETUP message */
cgpn_ton = 0x1; // Note that the field values must be valid.
cdpn_ton = 0x4;
cgpn_npi = 0x1;
cdpn_npi = 0x1;
cgpn_si = 0x0;
cgpn_pi = 0x0;
gc_util_insert_parm_ref(&pParmBlock,
IPSET_ CALLINFO,
IPPARM_CGPN_TYPE_OF_NUMBER,
sizeof(unsigned char),
&cgpn_ton);
gc_util_insert_parm_ref(&pParmBlock,
IPSET_ CALLINFO,
IPPARM_CDPN_TYPE_OF_NUMBER,
sizeof(unsigned char),
&cdpn_ton);
gc_util_insert_parm_ref(&pParmBlock,
IPSET_ CALLINFO,
IPPARM_CGPN_NUMBERING_PLAN_ID,
sizeof(unsigned char),
&cgpn_npi);
Comentários a estes Manuais