You are here: CSP Developer’s Guide: Overview > 7 Configuring and Using Resources on the DSP Series 2 Cards > Implementing PVD/AMD

Implementing PVD/AMD

Introduction

You can configure the CSP to analyze incoming PCM data and detect voice or an answering machine. You can set PVD/AMD parameters for a DSP Series 2 card and for an individual channel. When a signal is detected, the host is notified with a Call Processing Event (0x002E) message.

The optimal settings used to configure PVD and AMD tone and wav files parameters are described below.

Configuration

1. Configure DSP for PVD/AMD function using the DSP SIMM Configure (0x00C0) message.

DSP Function Type

PVD/AMD (0x34)

2. Use the Generic Card Configure (0x0122) message to set the PVD and AMD parameters using the PVD Parameters TLV (0x0619) and AMD Parameters TLV (0x0620). This message allows you to set the PVD/AMD parameters at the DSP Series 2 card level.

Set card-level PVD/AMD parameters using the Generic Card Configure (0x0122) message.

Mandatory TLV

0x05FA Card Object

Object Type: PVD/AMD Parameters (0x0006)

Implementation

Use the Resource Connect (0x0127) message to attach or connect a system resource to a span channel, in this case PVD/AMD. During a call if the PVD and AMD Parameters TLVs are set the parameters in this message override any card level settings that are configured with the Generic Card Configure (0x0122) message.

1. Attach PVD/AMD receiver to channel using the Resource Connect 0x0127 message.

AIBs

Resource A: Span/Channel

Resource B: Slot

Mandatory TLV

0x0602 Resource Type

Resource Type = PVD/AMD (0x0109)

Optional TLVs (to override default card parameters)

Below, as an example, is the Resource Connect (0x0127) message with the PVD and AMD Parameters TLVs. Sending the information below will enable CPE Events 0x42 to 0x48 in the Call Processing Event (0x2E) message (refer to the API Reference).

0x0619 PVD Parameters TLV

00 06 Length
00 23 Time Constant
FF EC Maximum Noise Level
00 03 Noise Gating Sensitivity

0x0620 AMD Parameters TLV

00 16 Length
01 2C Frequency Band 1: Min. Detection Freq. 1 Hz set to 300
0B B8 Frequency Band 1: Max. Detection Freq. 1 Hz set to 3000
02 EF Frequency Band 2 :Min. Detection Freq. 2 Hz set to 51
06 40 Frequency Band 2: Max. Detection Freq. 2 Hz set to 1600
06 41 Frequency Band 3: Min.Detection Freq. 3 Hz set to 1601
0B B8 Frequency Band 3: Max. Detection Freq. 3 Hz set to 3000
00 02 Min. Tone on time for declaration of tone present 10 ms to 2
00 0F Min. Tone on time for declaration of tone not present 10 ms set to15
FF CA Min. Level of Tone to declare present dBm set to -35
00 1E Min.Voice On Time for declaration of AMD_VOICE present 10 ms set to 30
00 0F Min. Voice Off Time for declaration of AMD_VOICE not present 10 ms set to 15

0x061B PVD/AMD Reports TLV

00 02 Length
00 0F Set to report all events Silence, PVD, Tones, and AMD

2. To disconnect the channel from the DSP resource, use the Resource Disconnect (0x0128) message.

AIBs

Resource A: Span/Channel

Mandatory TLV

0x0602 Resource Type

Resource Type = PVD (0x0108) or AMD (0x0109)

Optional TLVs

None

Query

Use the Generic Card Query (0x0123) message to query the card-level defaults for PVD/AMD.

See Pulse Code Modulation.
Digital Signal Processor
Tag-Length-Value block. A standardized block that allows data to inserted in a standard way into API messages.
Range of channels provided by T1 or E1 transmission service. A physical span is a group of channels taking up a single physical wire. A logical span is a group of channels taking up less than a single logical wire, or carried over more than one physical wire.
Hertz