8.4 Inbound Call-Control

(Page 5 of 12 in this chapter)
Name: inadi

Purpose: Demonstrates:

Usage: inadi [options]

where options are:

Option

Description

-b n

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

-s n:m

Specifies the MVIP stream and timeslot for the first channel. Default=0:0

-p protocol

Specifies the protocol to run. Default=lps0.

Highlights:

adiAnswerCall
adiReleaseCall
adiGetCallStatus
adiCollectDigits
adiStartPlaying
adiStartRecording

Description:

This description applies to the wink-start protocol did0.

When you take the handset off-hook, the TCP acknowledges the line seizure by generating a wink.

After the wink, enter three DTMF digits as the address. If the first digit is an 8, the demo releases the call by playing a reorder tone. If the first digit is a 9, the demo releases the call with a busy tone. If the first digit is a 0, the demo releases the call by playing a "special information tone." Otherwise, the call is connected and the demo proceeds into the "conversation state."

Once in the conversation state, the demo speaks the three-digit address you entered. After speaking the digits, you are prompted for one of the following options:

Procedure:

The following assumes that you are testing on an AG-8 DID with a 2500-type telephone connected to one of the lines.

Begin execution of the inadi program. Ensure you have correctly specified the AG board and MVIP stream for the handset you are using.

Take the handset off-hook. You should hear the wink-start acknowledged.

Enter three digits as described above. Depending upon the first digit entered, you should hear a reorder tone, busy tone or the digits spoken to you.

If the first digit in the step above is not 8, 9 or 0, you will hear a prompt to record voice, play back your recorded sample, or hang up.

Select the record voice option. You will hear the record beep prompt. Begin speaking after the prompt. The record function will terminate after you stop speaking.

You will be returned to the options menu. Select the playback option. The sample you just recorded will be played back.

Again, you will be returned to the options menu. Select the hang-up option. You should hear "good-bye" and the line should hang up.

Notes:

The inadi program demonstrates synchronous programming of a single port. Many of the demo subroutines are coded this way, such that a "start" command is initiated and the demo continuously retrieves events from the AG board until the expected event returns. This simplifies the overall program flow.

This demo can be used with various protocols/configurations; however, if the address is not available to it, skip the first two parts (selective rejection of calls and recitation of the called number), and go straight to the play/record loop.


(Page 5 of 12 in this chapter)

Copyright 1996 Natural MicroSystems, Inc. All Rights Reserved.