[Freeswitch-users] Error in codec negotiation: What are all the places that specify accepted codecs for outgoing calls?

Kristian Kielhofner kris at kriskinc.com
Fri Jun 6 22:17:47 MSD 2014


We would need to see a full siptrace and console log to see what's
happening here.

On Fri, Jun 6, 2014 at 10:27 AM, Mark Boots <mark at votomobile.org> wrote:
> We're using a major VoIP terminator and finding that on many outgoing calls,
> Freeswitch hangs up with INCOMPATIBLE_DESTINATION after trying to negotiate
> codecs.
>
> The carrier offers PCMA, and it looks like Freeswitch refuses to accept
> anything but PCMU:
>
>
> 2014-06-06 13:18:54.115197 [NOTICE] sofia_media.c:92 Pre-Answer
> sofia/external/0011104555493618652!
> 2014-06-06 13:18:54.115197 [DEBUG] switch_channel.c:3277
> (sofia/external/0011104555493618652) Callstate Change DOWN -> EARLY
> 2014-06-06 13:18:54.175210 [DEBUG] switch_core_session.c:1005 Send signal
> sofia/external/0011104555391494140 [BREAK]
> 2014-06-06 13:18:54.175210 [DEBUG] switch_core_session.c:1005 Send signal
> sofia/external/0011104555391494140 [BREAK]
> 2014-06-06 13:18:54.175210 [DEBUG] sofia.c:5741 Channel
> sofia/external/0011104555391494140 entering state [proceeding][183]
> 2014-06-06 13:18:54.175210 [DEBUG] sofia.c:5750 Remote SDP:
> v=0
> o=- 313783328916230866 1 IN IP4 81.52.176.165
> s=-
> c=IN IP4 81.52.176.165
> t=0 0
> a=sendrecv
> m=audio 25080 RTP/AVP 8 13 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:13 CN/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-15
>
> 2014-06-06 13:18:54.175210 [DEBUG] switch_core_media.c:2585 Set comfort
> noise payload to 13
> 2014-06-06 13:18:54.175210 [DEBUG] switch_core_media.c:2662 Audio Codec
> Compare [PCMA:8:8000:20:64000]/[PCMU:0:8000:20:64000]
> 2014-06-06 13:18:54.175210 [DEBUG] switch_core_media.c:2662 Audio Codec
> Compare [CN:13:8000:20:0]/[PCMU:0:8000:20:64000]
> 2014-06-06 13:18:54.175210 [DEBUG] switch_core_media.c:2662 Audio Codec
> Compare [telephone-event:101:8000:20:0]/[PCMU:0:8000:20:64000]
> 2014-06-06 13:18:54.175210 [DEBUG] switch_core_media.c:2824 Set 2833 dtmf
> send payload to 101
> 2014-06-06 13:18:54.175210 [DEBUG] switch_core_session.c:1005 Send signal
> sofia/external/0011104555391494140 [BREAK]
> 2014-06-06 13:18:54.175210 [NOTICE] sofia.c:5868 Hangup
> sofia/external/0011104555391494140 [CS_CONSUME_MEDIA]
> [INCOMPATIBLE_DESTINATION]
>
>
> However, our codec settings in vars.xml specify:
>
>   <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/>
>   <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/>
>
> The sip profile uses these settings.  Any idea how to debug what codecs
> Freeswitch is willing to accept?
>
> Thanks!
> +Mark
>
> _________________________________________________________________________
> 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
>



-- 
Kristian Kielhofner



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list