- The following command line options are accepted by the tcapdemo application. Options may be entered in any order. At the command line, enter the following:
tcapdemo [options] pointcode:subsystem phonenum
- where options include:
- The pointcode:subsystem parameter specifies the pointcode and subsystem number of the 800-number server. The phonenum parameter specifies the 800-number to be translated (only used by clients). Both parameters are used only by clients.
Note: If multiple instances of tcapdemo are bound to the same TX board, the SAP ID (-s parameter) and the subsystem number (-n parameter) must be unique for each instance.
Acting as a 800 number server
- To start tcapdemo as an 800 number server, type:
tcapdemo -b 1 -p 0 -n 255 -s
- The tcapdemo program binds to TX board one, uses SAP ID zero, and uses subsystem number 255. Since the
-s parameter is specified, tcapdemo also acts as a server.
- If binding is completed successfully, tcapdemo receives a Run State Indication event from the TCAP task. The tcapdemo program uses the information it receives to determine its run status. The run status must be one of the following
:
- 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 may be added, as long as they are listed after the
[800 Numbers] section header, and conform to the 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 the Q key.
Acting as an 800 number client
- To start tcapdemo as a client:
tcapdemo -b 2 -p 1 -j 100 -n 254 1.1.1:255 8001234567
- In this case, tcapdemo binds to TX board two, uses SAP ID one, and uses subsystem number 254. Since the
-s parameter is not specified, tcapdemo acts as a client.
- If binding is completed successfully, tcapdemo receives a Run State Indication event from the TCAP task. The tcapdemo program uses the information it receives to determine its run status. The run status must be one of the following
:
- After sending the 800-number request, tcapdemo waits for a response.
- After a response is received, tcapdemo continues to run, but no further requests are sent. To stop the client, press the Q key.