Version

WORD msg_parms[16]={0}; /* Declare buffer to send down */
msg_parms[0] = 3; /* Enables both DTMF suppression filter and */
/* CED tone filters */
ret= trauSendMsg( ctahd, TRAUCMD_NOTCH_CTRL, msg_parms, 1);
Note: When an application changes DTMF and/or CED suppression, the AG TRAU service returns a TRAUEVN_NOTCH_CTRL_DONE event.

|
Parameter
|
Value
|
Description
|
|---|---|---|
|
msg_parms[0]
|
0
|
Disables VAD.
|
|
msg_parms[0]
|
1
|
Enables VAD (default).
|
WORD msg_parms[16]={0}; /* Declare buffer to send down */
msg_parms[0] = 0; /* Disables VAD */
ret= trauSendMsg( ctahd, TRAUCMD_SETVAD, msg_parms, 1);

WORD msg_parms[16]={0}; /* Declare buffer to send down */
msg_parms[0] = 0; /* Freeze the echo model */
msg_parms[1] = 0; /* Disable echo suppressor */
msg_parms[2] = 1; /* Do not reset echo model */
ret= trauSendMsg( ctahd, TRAUCMD_ECHOCNTL, msg_parms, 3);

#define TRAUEVN_SETGAIN_DONE 0x000A210A
#define TRAUCMD_SETGAIN 0x0A
#define TRAU_INPUTGAIN_DEF 0x0400
Note: Plan the voice transmission level carefully to provide a balance between sufficient end-to-end voice levels and echo control. Under certain circuit conditions, (certain poor quality phones and temporary on-hook conditions) telephony circuit can oscillate or sing if the combination of the net gain and transhybrid losses exceeds 0 dB.
WORD msg_parms[16]={0}; /* Declare buffer to send down */
msg_parms[0] = TRAU_INPUTGAIN_DEF;/* Gain input setting */
msg_parms[1] = 0x0080; /* Output gain set to approx -18 dB */
ret= trauSendMsg( ctahd, TRAUCMD_SETGAIN, msg_parms, 2);

|
Value
|
Gain
|
Value
|
Loss
|
|---|---|---|---|
|
0x0FED
|
12
|
0x0000
|
Squelch
|
|
0x0E31
|
11
|
0x0081
|
18
|
|
0x0CA6
|
10
|
0x0091
|
17
|
|
0x0B46
|
9
|
0x00A2
|
16
|
|
0x0A0C
|
8
|
0x00B6
|
15
|
|
0x08F4
|
7
|
0x00CC
|
14
|
|
0x07FB
|
6
|
0x00E5
|
13
|
|
0x071D
|
5
|
0x0101
|
12
|
|
0x0657
|
4
|
0x0121
|
11
|
|
0x05A6
|
3
|
0x0144
|
10
|
|
0x0509
|
2
|
0x016B
|
9
|
|
0x047D
|
1
|
0x0198
|
8
|
|
0x0400
|
0
|
0x01C9
|
7
|
|
|
|
0x0201
|
6
|
|
|
|
0x0240
|
5
|
|
|
|
0x0286
|
4
|
|
|
|
0x02D5
|
3
|
|
|
|
0x032D
|
2
|
|
|
|
0x0391
|
1
|

|
Parameter
|
Value
|
Description
|
|---|---|---|
|
msg_parms[0]
|
0
|
Encodes data sent to data network side of gateway in mu-law format.
|
|
msg_parms[0]
|
1
|
Encodes data sent to data network side of gateway in A-law format.
|
WORD msg_parms[16]={0}; /* Declare buffer to send down */
msg_parms[0] = 0; /* Encoder mu-law format setting */
msg_parms[1] = 1; /* Decoder A-law format setting */
ret1= trauSendMsg( ctahd, TRAUCMD_TRANSCODE, msg_parms, 2);
Note: When an application sets IP-side signal format with trauSendMsg, the AG TRAU service returns an TRAUEVN_TRANSCODE_DONE event.


Version