[Freeswitch-users] Choice of codecs for incoming call

Александр Мустафин mustafin.aleksandr at gmail.com
Sat Feb 2 07:47:10 MSK 2013


Hello, Steven.

Thank you for reply.

Maybe my DID-provider is buggy, but I've succesfull calls in the other
pbx with the same number.
Short examples below - second example is work.

         FS (1st test)

----> INVITE (PCMU,PCMA)
<---- 100 Trying
<---- 200 OK (PCMU)
----> ACK
----> Re-INVITE (PCMA)
<---- 100 Trying
<---- 488 Not Acceptable Here

         CG (2nd test)

----> INVITE (PCMU,PCMA)
<---- 100 Trying
<---- 200 OK (PCMU, PCMA)
----> ACK
----> Re-INVITE (PCMA)
<---- 100 Trying
<---- 200 OK (PCMA)
----> ACK

02.02.2013 02:41, Steven Ayre пишет:
>> 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 at 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 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.
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130202/8c01dbf8/attachment.html 


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