(Page 4 of 6 in this chapter)
prt2prt [options]
2. Start prt2prt by entering the following prompt:
prt2prt -b 0 -s 4,0 -i wnk0 -o lps0This command uses board 0 and the DID hybrid in slot 4 for the incoming calls and the loopstart hybrid in slot 0 for the outgoing call. It also uses the winkstart protocol on the incoming call and the loopstart protocol on the outgoing call.
prt2prt starts and the following information is displayed:
CT Access Port to Port Calling Demo V.4 (Nov 4 1996)
Board = 1
InSlot,OutSlot = 4,0
Incoming Protocol = wnk0
Outgoing Protocol = lps0
NPorts = 1 Initializing and opening the CTA context...
Tracing disabled. Check that the daemon is running.
Event: CTAEVN_OPEN_SERVICES_DONE, Finished
Event: CTAEVN_OPEN_SERVICES_DONE, Finished
Event: ADIEVN_STARTPROTOCOL_DONE, Finished
--------
Waiting for incoming call... prt2prt waits for an incoming call.3. Put the telephone on stream/timeslot local:0:4 off-hook.
You should hear a relay click.
4. Dial a 3-digit telephone number.
prt2prt plays a message prompting you to dial an extension.
The following information is displayed:
Event: ADIEVN_INCOMING_CALL
Incoming Call...
Answering call...
Event: ADIEVN_ANSWERING_CALL
Event: ADIEVN_CALL_CONNECTED, Answered
Call connected.
Playing file 'ctademo', msg #12...
Playing 1 messages from 'ctademo'...
Event: VCEEVN_PLAY_DONE, Finished ,nbytes=1240
Getting extension...
Playing file 'ctademo', msg #16...
Playing 1 messages from 'ctademo'... 5. Dial an extension.prt2prt informs you that it will dial that extension and then places the call on the outgoing timeslot.
The following information is displayed:
Collecting digits to dial...
Event: ADIEVN_DIGIT_BEGIN, '5'
Event: ADIEVN_DIGIT_END
Event: ADIEVN_COLLECTION_DONE, Timeout
digit string = '5'
Got extension: 5
Playing file 'ctademo', msg #17...
Playing 1 messages from 'ctademo'...
Event: VCEEVN_PLAY_DONE, Finished ,nbytes=2700
Event: ADIEVN_STARTPROTOCOL_DONE, Finished
--------
Placing a call to '5'...
Event: ADIEVN_PLACING_CALL 6. Answer the call on the other phone that is connected to the outgoing line via the central office simulator.Event: ADIEVN_CALL_CONNECTED, Voice Begin
Connected. prt2prt connects the two voice streams so that a conversation can take place between the two telephones.7. Confirm that the two voice streams are connected by knocking on one mouthpiece. You should be able to hear the knocking on the other.
8. Hang up the incoming side. prt2prt tears down the call and goes back into a Waiting for Call state.
The following information is displayed:
Hanging up...
Event: ADIEVN_CALL_RELEASED
Call done.
Hanging up...
Event: ADIEVN_CALL_RELEASED
Call done.
Event: ADIEVN_STOPPROTOCOL_DONE, Finished
Event: ADIEVN_STOPPROTOCOL_DONE, Finished
Event: ADIEVN_STARTPROTOCOL_DONE, Finished
--------
Waiting for incoming call...
(Page 4 of 6 in this chapter)