4.1 Starting the Demo
Start the Global Call API demo program by typing the program name at the command line. The program name is:
Notes:
gc_basic_call_model1. A protocol package must be installed on the system prior to running the Global Call API demo program. The configuration file must specify an installed protocol. Refer to the documentation accompanying the separately orderable Global Call Protocols Package for information on installing protocols.
2. Before running the demonstration program with a T-1 robbed bit protocol and the ICAPI call control library, disable the DTI Wait Call firmware function by changing the default selection in the icapi.cfg file. See the $14 parameter description in the "ICAPI Configuration File" chapter of the Global Call E-1/T-1 Technology User's Guide for details.
3. When using PDK protocols, disconnecting and reconnecting the cable causes the demo to exit.The Global Call API demo program displays the status of the program as it runs. The following is an example of the output generated on a Linux system:
./gc_basic_call_model [MISC]: SRL mode ID set to SR_POLLMODE gc_basic_call_model_B1T1.log successfully opened gc_basic_call_model_B2T1.log successfully opened [MISC]: ********** GC DEMO - BASIC CALL MODEL *********** [GC_APICALL]: gc_Start(startp = NULL) Success [MISC]: Call Control Library Status: GC_ICAPI_LIB - available GC_ISDN_LIB - available GC_ANAPI_LIB - available GC_PDKRT_LIB - available GC_DM3CC_LIB - available GC_SS7_LIB - is not available for use GC_IPM_LIB - is not available for use GC_CUSTOM1_LIB - configured GC_CUSTOM2_LIB - configured [MISC]: E1 or T1 device being opened [GC_APICALL]: gc_OpenEx(devicename=:N_dtiB1T1:P_ar_r2_i:V_dxxxB1C1, mode=EV_SYNC) Success [MISC]: E1 or T1 device being opened [GC_APICALL]: gc_OpenEx(devicename=:N_dtiB2T1:P_ar_r2_o:V_dxxxB9C1, mode=EV_SYNC) Success [MISC]: gc_SetCallingNum(linedev=15, phone_num = 7654321) Success [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_UNBLOCKED [STATE]: GCST_NULL is the current GC call state [GC_APICALL]: gc_WaitCall(linedev=7, crnp=NULL, waittime=0, mode=EV_ASYNC) Success [STATE]: GCST_NULL is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_UNBLOCKED [STATE]: GCST_NULL is the current GC call state [GC_APICALL]: gc_MakeCall(linedev=15, numberstr=1234567, mode=EV_ASYNC) Success [STATE]: GCST_NULL is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_OFFERED [STATE]: GCST_NULL is the current GC call state [GC_APICALL]: gc_GetDNIS(crn=0x1000007) Success - dnis = 1234 [GC_APICALL]: gc_GetANI(crn=0x1000007) Success - ANI = 7654321 [GC_APICALL]: gc_AcceptCall(crn=0x1000007, mode=EV_ASYNC) Success [STATE]: GCST_OFFERED is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_ALERTING [STATE]: GCST_NULL is the current GC call state [STATE]: GCST_ALERTING is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_ACCEPT [STATE]: GCST_OFFERED is the current GC call state [GC_APICALL]: gc_AnswerCall(crn=0x1000007, mode=EV_ASYNC) Success [STATE]: GCST_ACCEPTED is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_ANSWERED [STATE]: GCST_ACCEPTED is the current GC call state [STATE]: GCST_CONNECTED is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_CONNECTED [STATE]: GCST_ALERTING is the current GC call state [MISC]: call connected - call progress not applicable [MISC]: gc_DropCall() will be issued in 1-2 seconds [STATE]: GCST_CONNECTED is the new GC call state after processing the event [MISC]: ****** Dropping outbound call from drop_outbound_calls_if_required() ****** [GC_APICALL]: gc_DropCall(crn=0x100000f, cause=GC_NORMAL_CLEARING, mode=EV_ASYNC) Success [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_DISCONNECTED [STATE]: GCST_CONNECTED is the current GC call state [GC_APICALL]: gc_DropCall(crn=0x1000007, cause=GC_NORMAL_CLEARING, mode=EV_ASYNC) Success [STATE]: GCST_DISCONNECTED is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_DROPCALL [STATE]: GCST_DISCONNECTED is the current GC call state [GC_APICALL]: gc_ReleaseCallEx(crn=0x1000007, EV_ASYNC) Success [STATE]: GCST_IDLE is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_RELEASECALL [STATE]: GCST_IDLE is the current GC call state [STATE]: GCST_NULL is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_DROPCALL [STATE]: GCST_CONNECTED is the current GC call state [GC_APICALL]: gc_ReleaseCallEx(crn=0x100000f, EV_ASYNC) Success [STATE]: GCST_IDLE is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_RELEASECALL [STATE]: GCST_IDLE is the current GC call state [GC_APICALL]: gc_MakeCall(linedev=15, numberstr=1234567, mode=EV_ASYNC) Success [STATE]: GCST_NULL is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_OFFERED [STATE]: GCST_NULL is the current GC call state [GC_APICALL]: gc_GetDNIS(crn=0x1000007) Success - dnis = 1234 [GC_APICALL]: gc_GetANI(crn=0x1000007) Success - ANI = 7654321 [GC_APICALL]: gc_AcceptCall(crn=0x1000007, mode=EV_ASYNC) Success [STATE]: GCST_OFFERED is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_ALERTING [STATE]: GCST_NULL is the current GC call state [STATE]: GCST_ALERTING is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_ACCEPT [STATE]: GCST_OFFERED is the current GC call state [GC_APICALL]: gc_AnswerCall(crn=0x1000007, mode=EV_ASYNC) Success [STATE]: GCST_ACCEPTED is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_ANSWERED [STATE]: GCST_ACCEPTED is the current GC call state [STATE]: GCST_CONNECTED is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_CONNECTED [STATE]: GCST_ALERTING is the current GC call state [MISC]: call connected - call progress not applicable [MISC]: gc_DropCall() will be issued in 1-2 seconds [STATE]: GCST_CONNECTED is the new GC call state after processing the event [MISC]: ****** Dropping outbound call from drop_outbound_calls_if_required() ****** [GC_APICALL]: gc_DropCall(crn=0x100000f, cause=GC_NORMAL_CLEARING, mode=EV_ASYNC) Success [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_DISCONNECTED [STATE]: GCST_CONNECTED is the current GC call state [GC_APICALL]: gc_DropCall(crn=0x1000007, cause=GC_NORMAL_CLEARING, mode=EV_ASYNC) Success [STATE]: GCST_DISCONNECTED is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_DROPCALL [STATE]: GCST_DISCONNECTED is the current GC call state [GC_APICALL]: gc_ReleaseCallEx(crn=0x1000007, EV_ASYNC) Success [STATE]: GCST_IDLE is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_RELEASECALL [STATE]: GCST_IDLE is the current GC call state [STATE]: GCST_NULL is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_DROPCALL [STATE]: GCST_CONNECTED is the current GC call state [GC_APICALL]: gc_ReleaseCallEx(crn=0x100000f, EV_ASYNC) Success [STATE]: GCST_IDLE is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_RELEASECALL [STATE]: GCST_IDLE is the current GC call state [GC_APICALL]: gc_MakeCall(linedev=15, numberstr=1234567, mode=EV_ASYNC) Success [STATE]: GCST_NULL is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_OFFERED [STATE]: GCST_NULL is the current GC call state [GC_APICALL]: gc_GetDNIS(crn=0x1000007) Success - dnis = 1234 [GC_APICALL]: gc_GetANI(crn=0x1000007) Success - ANI = 7654321 [GC_APICALL]: gc_AcceptCall(crn=0x1000007, mode=EV_ASYNC) Success [STATE]: GCST_OFFERED is the new GC call state after processing the event [MISC]: ********* Received a GC event ********* [EVENT]: GCEV_ALERTING [STATE]: GCST_NULL is the current GC call state [STATE]: GCST_ALERTING is the new GC call state after processing the event *******Received User Interrupted Signal******* *******Received User Interrupted Signal******* [MISC]: ********* Program Exiting ********* [MISC]: The total no of Inbound calls on this device is: 2 [MISC]: The total no of Inbound calls over all devices is: 2 [MISC]: The total no of Outbound calls over all devices is: 2 [MISC]: The total duration taken by the test is: 0.70 minutes [MISC]: The total no of Outbound calls on this device is: 2 [MISC]: The total no of Inbound calls over all devices is: 2 [MISC]: The total no of Outbound calls over all devices is: 2 [MISC]: The total duration taken by the test is: 0.70 minutesAlso, see Section , "Example of Inbound Channel Activity Log" and Section , "Example of Outbound Channel Activity Log" for more information.
Click here to contact Telecom Support Resources
Copyright 2002, Intel Corporation