keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

A1200P and ALAW codec

12 years 6 months ago #7416 by ddpaul
Hi.

I have A1200P card with bunch of FXO-100 and FXS-100 modules installed to the Asterisk box.
I use ALAW codec in my Asterisk setup. When I dial from PSTN to Asterisk extension through FXO port I have following warnings in Asterisk log:
[Oct  9 11:21:29] WARNING[8114] chan_sip.c: Asked to transmit frame type ulaw, while native formats is 0x8 (alaw) read/write = 0x8 (alaw)/0x8 (alaw)
[Oct  9 11:21:29] WARNING[8114] chan_sip.c: Asked to transmit frame type ulaw, while native formats is 0x8 (alaw) read/write = 0x8 (alaw)/0x8 (alaw)
[Oct  9 11:21:29] WARNING[8114] chan_sip.c: Asked to transmit frame type ulaw, while native formats is 0x8 (alaw) read/write = 0x8 (alaw)/0x8 (alaw)
[Oct  9 11:21:29] WARNING[8114] chan_sip.c: Asked to transmit frame type ulaw, while native formats is 0x8 (alaw) read/write = 0x8 (alaw)/0x8 (alaw)
[Oct  9 11:21:29] WARNING[8114] chan_sip.c: Asked to transmit frame type ulaw, while native formats is 0x8 (alaw) read/write = 0x8 (alaw)/0x8 (alaw)
...
When Asterisk extension answers the warnings is stopped, channel codec switched to ALAW and everything works fine.

Then I tried to switch DAHDI channel to ALAW mode (with "alaw" option in /etc/dahdi.system.conf):
...
# Span 1: OPVXA1200/12 "OpenVox A1200P/A800P Board 13" (MASTER)
...
fxsks=9
alaw=9
echocanceller=mg2,9
...
After reload DAHDI modules:
# dahdi_cfg -vvv
DAHDI Tools Version - 2.5.0.1

DAHDI Version: 2.5.0.1
Echo Canceller(s): HWEC, MG2
Configuration
======================

Channel map:

...
Channel 09: FXS Kewlstart (A-law) (Echo Canceler: mg2) (Slaves: 09)
...
After Asterisk restart:
sip*CLI> dahdi show channel 9
Channel: 9
...
Default law: alaw
...
It's seems like channel is really switched to ALAW.

When I repeat my dialing test I see that all warning messages are gone. So it's seem like my purpose is reached, but is's only at first glance :(
When Asterisk extension answers and call is established I get a new problem: distorted voice and with high volume crackling at background.

So my question is - can A1200P work correctly with "alaw" option set? Or it's tied to ULAW codec firmly?
12 years 6 months ago #7419 by chunlei.yi
can you have this problem if you use ulaw,you need to confim what is the codec that the pstn send.
my msn:[email protected],you can add me
12 years 6 months ago #7423 by ddpaul
When I set channel codec to ULAW explicitly everything works fine.
# cat /etc/dahdi/system.conf
...
# Span 1: OPVXA1200/12 "OpenVox A1200P/A800P Board 13" (MASTER)
...
fxsks=9
mulaw=9
echocanceller=mg2,9
...
# dahdi_cfg -vvv
DAHDI Tools Version - 2.5.0.1

DAHDI Version: 2.5.0.1
Echo Canceller(s): HWEC, MG2
Configuration
======================


Channel map:

...
Channel 09: FXS Kewlstart (Mu-law) (Echo Canceler: mg2) (Slaves: 09)
...
sip*CLI> dahdi show channel 9
Channel: 9
...
Default law: ulaw
...
I can leave these settings because voice quality is sufficient, but I can't understand why quality is so bad with ALAW?

i] Last edited by ddpaul at 2011-10-11 16:54 [/i
Time to create page: 0.030 seconds
Powered by Kunena Forum