[Freeswitch-users] Choice of codecs for incoming call

Александр Мустафин mustafin.aleksandr at gmail.com
Fri Feb 1 14:18:22 MSK 2013


Hello.

My FS receive INVITE with 2 codecs in SDP: PCMA and PCMU. After hunting
dialplan, this call forwarding to IVR, and I see next message in log:

2013-01-31 01:23:22.388780 [DEBUG] sofia_glue.c:5094 Audio Codec Compare
[PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000]
2013-01-31 01:23:22.388780 [DEBUG] sofia_glue.c:3077 Set Codec
sofia/internal/9089080908 at PSTN PCMU/8000 20 ms 160 samples 64000 bits
2013-01-31 01:23:22.388780 [DEBUG] switch_core_codec.c:111
sofia/internal/9089080908 at PSTN Original read codec set to PCMU:0

And FS send 200 OK to remote side with one codec in SDP: PCMU.

My parameters:

In internal.xml (profile)
<param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>
<param name="outbound-codec-prefs" value="$${global_codec_prefs}"/>

In vars.xml
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU,PCMA,G729,G722,GSM"/>
<X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,G729,GSM"/>
<X-PRE-PROCESS cmd="set" data="inbound_codec_prefs=PCMU,PCMA,G729,GSM"/>

This is normal behavior?How can I manage set of codec in inbound calls?

Best regards, Alexander.



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list