How can I manage set of codec in inbound calls?
<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"/> <param name="inbound-codec-prefs" value="$${inbound_codec_prefs}"/> <param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/> Your previous configuration used the global list for both parameters. global_codec_prefs isn't actually then used, there's a codec-prefs param for convenience only that sets both inbound and outbound at the same time and isn't actually needed if you're setting both. -Steve On 1 February 2013 11:18, Александр Мустафин <mustafin.aleksandr@gmail.com>wrote:
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@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@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.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org