(Page 1 of 1 in this chapter)
|
Program
|
Description
|
|---|---|
isdncta |
A daemon which starts and stops the ISDN protocol stack.
|
isdnchan |
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, or Spain.
|
2. It initializes CT Access.
3. If the
-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.
4. It starts the ISDN protocol stack on the AG board specified on the command-line, either as Terminal Equipment (TE) or as Network Equipment (NT), with the specified network operator variant and country variant.
2. Run agmon to initialize your hardware and to make your AG configuration file changes effective.
3. To start the ISDN protocol stack, enter:
isdncta [options]... where options is one or more of the command line options described above.
4. Now launch another demonstration program.
5. When you have finished with the demonstration, press Q to terminate isdncta.
|
Under this OS...
|
Go to this directory...
|
Enter...
|
|---|---|---|
|
Windows NT
|
c:\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 function calls 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 demo 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 call.
-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.
Note: Parameter files are optional for United States implementations.
Usage
isdnchan [options]
2. Enter the following at the command line:
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.2. It starts the AG ISDN TCP isd0.tcp, configuring it using the parameters loaded in step 1.
3. It either places a call or waits for an inbound call, depending on the
-i command-line option.4. If it is commanded to dial out (outbound behavior), it dials either automatically or interactively, depending on the
-i command-line option.5. If the demonstration program is commanded to wait for a call (inbound behavior):
a. It waits for incoming calls.
b. When a call arrives, if the user has selected the
-P command-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 that number of 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).
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.
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.
6. If the demonstration program seizes the line first (outbound behavior):
a. It dials the number specified by the user.
b. If the user has selected the
-P command-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
|
c:\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 function calls 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 of the call 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 call.
-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 below.
-i option was not specified, the loop immediately calls the function
MyPlaceCall to place a call.
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.
-u was specified on the command line, MyPlaceCall invokes the
function adiSetExtendedArgs, that prepares ADI to attach the extended
arguments to adiPlaceCall.
(Page 1 of 1 in this chapter)tech_support@nmss.com Copyright © 1998, Natural MicroSystems, Inc. All rights reserved.