The client sends the list of codecs it supports in the INVITE (PCMA+PCMU). FS will check check that against the list of codecs it supports, and select just *one* codec that's supported by both. That's returned by FS in the SDP of the 183 (if any) and 200. If there's no codec supported by both sides then you get 488. There are parameters that influence when and which codec is selected, but you end up with only one codec in use for any particular call. In this case it's selected the first supported codec, PCMU. -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