(Page 1 of 1 in this chapter)
-i command line argument.
-i command line argument.
|
Under this OS...
|
Go to this directory...
|
Enter...
|
|---|---|---|
|
NT
|
c:\nms\ctaccess\demo\inoutcta
|
nmake
|
|
OS/2
|
c:\nms\ctaccess\demo\inoutcta
|
makedemo
|
|
UNIX
|
/opt/nms/ctaccess/demo/inoutcta
|
make
|
inoutcta[options]
|
Option
|
Description
|
-n number_to_dial
|
For outbound or inout protocols only. Default: 123number_to_dial must be formatted appropriately for the TCP.
|
-t (the use threads option) is specified on the command line. If the -t option is not specified, the demonstration program simply calls the RunDemo function. Otherwise, the demonstration program launches RunDemo twice with different parameters, as two separate threads that continuously place calls to each other.
Starting Protocols on AG Quad Boards
-i option is not specified, the loop immediately calls the function
MyPlaceCall to dial out a call.
These attributes are stored in a data structure ADI_CALL_STATUS. Fields filled in vary depending on a protocol and a country. For more information see Section 8.2, and Appendix C.
If a purely inbound TCP is active and MyReceiveCall is called, or if the TCP signals to the application that the line has been seized and that call setup has begun, then the application must wait for the incoming call setup to be completed. The function does so by waiting for the appropriate event (ADIEVN_INCOMING_CALL). Once this event is detected, the function calls adiGetCallStatus to get the digit information as described above.
On digital trunks, while waiting for ADIEVN_INCOMING_CALL, MyReceiveCall may receive the ADIEVN_INCOMING_DIGIT event which indicates that a digit has arrived in the queue. MyReceiveCall displays a message to the screen that indicates the digit.
MyReceiveCall may also receive an ADIEVN_CALL_DISCONNECTED, indicating that the calling party has hung up. MyReceiveCall jumps to the label hangup_in to hang up the call.
(Page 1 of 1 in this chapter)