(Page 3 of 6 in this chapter)


10.2 Drop and Insert Program: drpinsrt

Name

drpinsrt

Purpose

Demonstrates:

Usage

drpinsrt [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 d:i,o

Specifies the MVIP-90 stream and the incoming call timeslot and the outgoing call timeslot. Default = 18: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

drpinsrt performs call transfer of an incoming call to an outgoing line. It uses the CT Access Switching service to connect the voice streams of two calls so that a conversation can be carried out. It demonstrates the use of swiCallDriver to use the supervision monitoring capability of the underlying MVIP-90 driver. Refer to Chapter 6 for more information about this function.

Because drpinsrt demonstrates low-level driver commands for monitoring, it uses MVIP-90 stream values.

Procedure

The following procedure assumes that you:

To run drpinsrt:

1. Start agmon and ensure that stream/timeslots 16:0,4 are connected to stream/timeslots 18:0,4 with quad connections.

If not, use the swish MakeConnection command to make the quad connections. Refer to Section 10.4 for more information.

2. Start drpinsrt by entering the following prompt:

drpinsrt -b 0 -s 18:4,0 -i wnk0 -o lps0


 This command uses board 0, streams:timeslot 18:4 for the incoming calls, 18:0 for the outgoing call and uses the Wink-Start protocol on the incoming call and the Loop-Start protocol on the outgoing call.

drpinsrt displays the following:

  CT Access Multi-thread Drop and Insert Demo V.5 (Nov 4 1996)
Board = 1
DSP LOCAL Stream:InSlot,OutSlot= 18: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: ADIEVN_STARTPROTOCOL_DONE, Finished
--------
Waiting for incoming call...
drpinsrt waits for an incoming call.

3. Put the telephone on stream/timeslot 16:4 off-hook.

You should hear a relay click.

4. Dial a 3-digit telephone number.

drpinsrt 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'...
Event: VCEEVN_PLAY_DONE, Finished ,nbytes=3800
Collecting digits to dial...
Event: ADIEVN_COLLECTION_DONE, Timeout
digit string = ''
Playing file 'ctademo', msg #16...
Playing 1 messages from 'ctademo'...
5. Dial an extension.

drpinsrt informs you that it will dial that extension and then places the call on the outgoing timeslot.

The following information is displayed:

Event: ADIEVN_DIGIT_BEGIN, '5'
Event: VCEEVN_PLAY_DONE, Digit , nbytes=0
Collecting digits to dial...
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: CTAEVN_OPEN_SERVICES_DONE, Finished
Event: ADIEVN_STOPPROTOCOL_DONE, Finished
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.
drpinsrt connects the two voice streams so that a conversation can take place. It also monitors the incoming side for hang-up using supervision monitoring.

7. Hang up the incoming side. The supervision monitor call returns and drpinsrt tears down the call and goes back into a Waiting for Call state.

The following information is displayed:

Wait_Supv return success.
Event: ADIEVN_CALL_DISCONNECTED, Disconnect
Signal
Hanging up...
Event: ADIEVN_CALL_RELEASED
Call done.
Event: ADIEVN_STOPPROTOCOL_DONE, Finished
Event: ADIEVN_STARTPROTOCOL_DONE, Finished
--------
Waiting for incoming call...



(Page 3 of 6 in this chapter)


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