# Using lapddemo

Perform the following steps to run lapddemo:

Step | Action
1 | Set up the board keyword file to describe the board and software configuration. For more information, see the NMS ISDN Installation Manual and the NMS OAM System User's Manual.
2 | Run oamsys to initialize your hardware and make your configuration file changes effective.
3 | If necessary, modify the demonstration configuration file lapddemo.cfg. For more information, see lapddemo configuration file.
4 | Start the demonstration by entering: lapddemo [options] where options are one or more of the command line options described in the lapddemo overview. lapddemo sends a SABME message on the trunk to establish the data link.
5 | Press S. The program sends a SETUP message with a called number value, a calling number value, a B channel number, and an encoding flag. These values are specified in lapddemo.cfg. The default values are: Called number value: 12345 Calling number value: 678 B channel number: 12 Encoding flag: A law

If the data link is established, the program exchanges Q.931 messages with the remote party, as described in the configuration file. By default, the following exchanges are made:

If... | lapddemo...
--- | ---
SETUP is received | Sends an ALERTING message, and then a CONNECT message.
CONNECT ACK is received | Starts timer T.
Timer T expires | Sends a DISCONNECT message.
DISCONNECT is received | Sends a RELEASE message.
RELEASE is received | Sends a RELEASE COMP message.