Enter the following command to start tcapdemo as an 800 number server:
tcapdemo -b 1 -p 0 -n 255 -s
tcapdemo binds to TX board 1, uses SAP ID zero, and uses subsystem number 255. Since the -s parameter is specified, tcapdemo also acts as a server.
If binding is successful, tcapdemo receives a run state indication event from the TCAP task. tcapdemo uses the information it receives to determine its run status. The run status must be one of the following:
|
Run status |
Description |
|
Standalone or primary |
tcapdemo waits for an 800 number request to arrive. |
|
Backup |
tcapdemo stops working as a server and waits for another run state indication event. |
When a request arrives and run status is standalone or primary, tcapdemo compares the received 800 number to the information in the numbers.800 file.
Note: The numbers.800 file must be in the same directory as the tcapdemo.exe file.
The numbers.800 file looks like this:
[800 Numbers]
8001234567=3122456789
8004561234=8477069700
Additional 800 numbers can be added, as long as they are listed after the [800 Numbers] section header, and conform to the following syntax:
800nnnnnnn=yyyyyyyyyy
If a matching 800 number is found, the tcapdemo server returns the translated number in a RETURN_RESULT [last] component.
If no matching 800 number is found, the tcapdemo server returns a RETURN_ERROR component.
The tcapdemo server continues to listen for and respond to requests indefinitely. To stop the server, press Q.