(Page 1 of 1 in this chapter) Version
|
Program
|
Description
|
|---|---|
isdncta |
A daemon which starts and stops the ISDN protocol stack.
|
isdnncc |
ISDN NCC call control demonstration program.
|
isdnchan |
ISDN ADI call control demonstration program.
|
Usage
isdncta [options]
| 1
Use for the following countries: Austria, Denmark, Finland, Greece, Iceland, Ireland, Italy, Liechtenstein, Luxembourg, Netherlands, Norway, Portugal, Russia, Spain, or Switzerland.
|
-s option is specified, isdncta makes MVIP connections needed to support AG ISDN call control. (If EnableMvip=NO in the AG configuration file, these connections are made automatically when the AG board boots.) For more information, see Section 3.3, Making Switch Connections for AG ISDN.
isdncta [options]... where options is one or more of the command line options described above.
|
Under this OS...
|
Go to this directory...
|
Enter...
|
|---|---|---|
|
Windows NT
|
\nms\ctaccess\demos\isdncta
|
nmake
|
|
UNIX
|
/opt/nms/ctaccess/demos/isdncta
|
make
|
adi or cta. An example is adiStartProtocol, which starts a TCP instance on a context. Other functions in isdncta are found in CTADEMO, a library distributed with CT Access containing examples of how to use the API. CTADEMO functions have names starting with Demo. One example is DemoOpenPort, which opens the CT Access application queue, and then calls another demonstration function to create a context and open services on the new queue. Most CTADEMO functions are wrappers that enclose the corresponding ADI function and wait for an event to terminate the function, signaling whether the function was successful or not. In this way, they transform an asynchronous wait for an event into a synchronous function.
-s option was specified, main then calls MyMakeConnection, which uses the CT Access Switching service to make the MVIP connections necessary to support Natural Call Control. For more information, see Section 3.3, Making Switch Connections for AG ISDN.
isdnchan [options]
isdnchan [options]
-d option is not specified, the program loads the country-specific parameters that isd0.tcp will use. To do so, it loads and parses one of the country-specific parameter files provided with the product.
-i command line option.
-i command line option.
a. It waits for incoming calls.Note: These digits are assigned in the code with a preprocessor directive. You can change them; for example, for tests in a switch-room environment where the demonstration program is connected to a line with an address starting with 8, 9, or 0. e. If the first digit is not an 8, 9, or 0, the demonstration program plays a welcome message and speaks back the digits it received.b. When a call arrives, if the user has selected the
-Pcommand line option (Non-Exclusive Mode), the program performs the switching to connect the B channel on which the call has been received to the appropriate DSP resource on the AG board.c. The user can answer immediately by pressing a key on the computer keyboard, or wait until a specified number of rings has been played by the TCP. When the rings have been played, the TCP answers without the user's intervention.
d. At this point, the program checks the first digit of the incoming number. If the digit is an 8, it rejects the call and plays a busy tone. If the digit is a 9, it rejects the call, plays a reorder tone and goes back to waiting for calls. If the digit is a 0, it rejects the call and plays a Special Information Tone (SIT).
f. It then plays another prompt asking the user to choose an action by pressing a key on the telephone keypad. Available actions are: play a file, record a file, or hang up.
g. It starts the DTMF tone detector and waits for a tone. If the tone does not arrive, it hangs up.
h. If the tone arrives, the demonstration program performs the action that the tone specifies, then hangs up.
a. It dials the number specified by the user.b. If the user has selected the
-Pcommand line option (Non-Exclusive Mode), the program performs the switching to connect the B channel on which the call has been placed to the appropriate DSP resource on the AG board.c. When the call is answered, the demonstration program starts recording.
d. When silence is detected, the demonstration program stops recording and plays the DTMF tone meaning "hang up" for its inbound counterpart.
e. Then the program starts playing back the newly recorded voice file.
f. When playing is completed, it hangs up.
-v is specified on the command line, the demonstration program displays on-screen the CT Access messages it receives, according to the specified verbosity level.
|
Under this OS...
|
Go to this directory...
|
Enter...
|
|---|---|---|
|
Windows NT
|
\nms\ctaccess\demos\isdnchan
|
nmake
|
|
UNIX
|
/opt/nms/ctaccess/demos/isdnchan
|
make
|
adi or cta. An example is adiGetCallStatus, which retrieves a structure containing information about the current call. Other functions in isdnchan are found in CTADEMO, a library distributed with CT Access containing examples of how to use the API. CTADEMO functions have names starting with Demo. One example is DemoRejectCall, which uses adiRejectCall and then waits for the result before returning. Most CTADEMO functions are wrappers that enclose the corresponding adi function and wait for an event to terminate the function, signaling whether the function was successful or not. In this way, they transform an asynchronous wait for an event into a synchronous function.
-c option was specified on the command line with a three-letter country code cty, DemoLoadParameters looks for the file prtcty.par, where prt is the value given with the -p option on the command line, minus the trailing digit. Otherwise, DemoLoadParameters searches for the file adiisd.par. It looks first in the current directory, and then in one of the following locations:
-i option (for interactive dialing) was specified on the command line,
the loop prompts the user to hit a key, and starts waiting for the keyboard
event. When the user hits a key, the loop calls the function MyPlaceCall to
place a call. This function is described in detail later in this chapter.
-i option was not specified, the loop immediately calls the function
MyPlaceCall to place a call.
The Call Receiving Function MyReceiveCall
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 CT Access event (ADIEVN_INCOMING_CALL). Once this event is detected, the function calls adiGetCallStatus to get the digit information as described above.
If Non-Exclusive Mode has been selected, the function calls ConnectBChannel to connect the appropriate DSP resource on the AG board to the B channel on the trunk.
While waiting for ADIEVN_INCOMING_CALL, MyReceiveCall may receive ADIEVN_INCOMING_DIGIT, indicating that a digit has arrived in the queue. MyReceiveCall displays a message on the screen which indicates the digit.
MyReceiveCall may also receive ADIEVN_CALL_DISCONNECTED, indicating that the calling party has hung up. MyReceiveCall calls hangup_in to hang up the call.
The Call Placement Function MyPlaceCall
-u was specified on the command line, MyPlaceCall invokes
adiSetExtendedArgs, which prepares the ADI service to attach the
extended arguments to adiPlaceCall.
The Switching Function ConnectBChannel
Usage
... where options is one or more of the command line options described above.
-d option is not specified, the program loads parameters that isd0.tcp will use.
-i command line option.
a. It waits for incoming calls.b. When a call arrives, call status structures are accessed to retrieve the incoming call information such as the called number, calling number or UUI, if any.
c. If the user has selected the
-Pcommand line option (Non-Exclusive Mode), the program performs the switching to connect the B channel on which the call has been received to the appropriate DSP resource on the AG board.d. If the
-aoption has been specified in the command line, the call is accepted using the mode supplied by the user.e. At this point, the program checks the first digit of the incoming number. If the digit is an 8, it rejects the call and plays a busy tone. If the digit is a 9, it rejects the call, plays a reorder tone and goes back to waiting for calls. If the digit is a 0, it immediately rejects the call by calling nccDisconnectCall, starting the disconnect procedure.
f. If a reject digit was not found in the incoming number, the program waits until a specified number of rings have been played by the TCP. When the rings have been played, the TCP answers the call.
g. If the first digit is not an 8, 9, or 0, the demonstration program plays a welcome message and speaks back the digits it received.
h. It then plays another prompt asking the user to choose an action by pressing a key on the telephone keypad. Available actions are: record a file ("1"), play a file ("2"), or hang up ("3").
i. The demonstration program starts the DTMF tone detector and waits for a tone. If the tone does not arrive, it hangs up.
j. If the tone arrives, the demonstration program performs the action that the tone specifies, then hangs up.
a. It dials the number specified by the user. The calling number is precoded as "987".b. If the user has selected the
-Pcommand line option (Non-Exclusive Mode), the program performs the switching to connect the B channel on which the call has been placed to the appropriate DSP resource on the AG board.c. When the call is answered, the demonstration program starts call progress.
d. If call progress detects the busy tone, the program hangs up, and ring tones are reported to the user. If call progress finishes with silence or detects voice, the program starts recording.
e. When silence is detected by the recording functions, the demonstration program stops recording and plays the DTMF tone "3" meaning "hang up" for its inbound counterpart.
f. When playing is completed, it hangs up.
-v is specified on the command line, the demonstration program displays on-screen the CT Access messages it receives, according to the specified verbosity level.
|
Outbound
|
|
Inbound
|
|---|---|---|
|
Place call.
|
![]()
|
Wait for call.
|
|
Get connected.
|
![]()
|
Answer call.
|
|
Record.
|
![]()
|
Speak prompt and digits.
|
|
Send DTMF tone.
|
![]()
|
Detect DTMF tone.
|
|
Hang up.
|
![]()
|
Hang up.
|
|
Under this OS...
|
Go to this directory...
|
Enter...
|
|---|---|---|
|
Windows NT
|
\nms\ctaccess\demos\isdnncc
|
nmake
|
|
UNIX
|
/opt/nms/ctaccess/demos/isdnncc
|
make
|
ncc (for call control), adi (for media operations) or cta. An example is nccGetCallStatus, which retrieves a structure containing some information about the current call. Other function calls in isdnncc are found in CTADEMO, a library distributed with CT Access containing examples of how to use the API. CTADEMO functions have names starting with Demo. One example is DemoSetReportLevel, which sets a filter to tell which messages to report. Most CTADEMO functions are wrappers that enclose the corresponding NCC, ADI, or CTA function and wait for an event to terminate the function, signaling whether the function was successful or not. In this way, they transform an asynchronous wait for an event into a synchronous function.
-i option was not specified, the loop immediately calls MyPlaceCall to place a call.
The Call Placement Function MyPlaceCall
-u was specified on the command line, MyPlaceCall fills in the
PLACECALL_EXT structure using the corresponding macros and supplies
the p_data pointer to the structure as an argument to nccPlaceCall. To place
the call, MyPlaceCall invokes nccPlaceCall with the digits to call, and
calling digits, and waits for events.
(Page 1 of 1 in this chapter) Version2 In MVIP-95 terms, this is local streams 4:0, 5,0.
tech_support@nmss.com Copyright © 1999, Natural MicroSystems, Inc. All rights reserved.