Q931TEST description

The program Q931TEST is a simple simulator for the q931 protocol
included with the Bayfront CAPE Tools(tm) (BCT) as q931.pdl. 

The process of building a similar simulator for your protocol is described 
in BCT Help under "Step-by-Step Protocol Design" the section dealing with
"Example State Machine Test/Debug Procedures."

Given the initial state and event Q931TEST runs the state machine 
interpreter (sm_exec.c) on the q931 state machine (q931.c) using actions
(q931act.c) that simply print their name. The result is a trace of the
actions performed for that event in that state.

The Q931TEST program takes two numbers as input: the initial state and the 
event. The codes for these numbers are found in the file q931.h. The files
q931.h, q931.c, q931.str and q931.act (renamed to q931act.c) are all 
generated by the BCT compiler from the q931.pdl input. These files along 
with the Q931TEST c source are included in the \EXAMPLES directory. The 
files sm_exec.c and cape.h are found in the BCT installation directory.

EXAMPLE RUN:

Enter: <state #> <event #> (see q931.h for codes, type quit to exit)
3 4
Start: State= U03_OutgoingCallProc  Event= T308_timeout
StatusEnqOption
CaseOption
snet_Status
 execute ok



