(Page 4 of 6 in this chapter)


10.3 Port to Port Program: prt2prt

Name

prt2prt

Purpose

Demonstrates:

Usage

prt2prt [options]

where options are:

Option

Description

-b n

Specifies the AG board number <n>. Default = 0

-d driver_name

Specifies the name of the driver dynamic link library.
Default = agsw

-s i,o

Specifies the incoming call timeslot and the outgoing call timeslot. Default: 0,2

-i protocol

Specifies the protocol to run on the incoming call side.
Default = lps0

-o protocol

Specifies the protocol to run on the outgoing call side.
Default = lps0

Description

prt2prt performs call transfer of an incoming call to an outgoing line. It uses the Switching service to connect the voice streams of two calls so that a conversation can be carried out.

Because prt2prt is an actual demonstration of the Switching service, it uses MVIP-95 stream values.

prt2prt only works with an AG-8 board, or an AG-T1/AG-E1 board, or the first span of an AG Quad T1/E1 board.

Procedure

The following procedure assumes that you:

To run prt2prt:

1. Start agmon.

2. Start prt2prt by entering the following prompt:

prt2prt -b 0 -s 4,0 -i wnk0 -o lps0

This 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)


tech_support@nmss.com
Copyright © 1997, Natural MicroSystems, Inc. All rights reserved.