<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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.<div><br></div><div>The carrier offers PCMA, and it looks like Freeswitch refuses to accept anything but PCMU:</div><div><br></div><div><br></div><div><!--?xml version="1.0" encoding="UTF-8" standalone="no"?-->

<span style="font-size: 11px; font-family: Menlo; color: rgb(52, 187, 199);">2014-06-06 13:18:54.115197 [NOTICE] sofia_media.c:92 Pre-Answer sofia/external/0011104555493618652!</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">2014-06-06 13:18:54.115197 [DEBUG] switch_channel.c:3277 (sofia/external/0011104555493618652) Callstate Change DOWN -&gt; EARLY</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">2014-06-06 13:18:54.175210 [DEBUG] switch_core_session.c:1005 Send signal sofia/external/0011104555391494140 [BREAK]</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">2014-06-06 13:18:54.175210 [DEBUG] switch_core_session.c:1005 Send signal sofia/external/0011104555391494140 [BREAK]</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">2014-06-06 13:18:54.175210 [DEBUG] sofia.c:5741 Channel sofia/external/0011104555391494140 entering state [proceeding][183]</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">2014-06-06 13:18:54.175210 [DEBUG] sofia.c:5750 Remote SDP:</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">v=0</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">o=- 313783328916230866 1 IN IP4 81.52.176.165</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">s=-</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">c=IN IP4 81.52.176.165</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">t=0 0</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">a=sendrecv</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">m=audio 25080 RTP/AVP 8 13 101</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">a=rtpmap:8 PCMA/8000</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">a=rtpmap:13 CN/8000</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">a=rtpmap:101 telephone-event/8000</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">a=fmtp:101 0-15</span><span style="font-size: 11px; font-family: Menlo;"><br><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">2014-06-06 13:18:54.175210 [DEBUG] switch_core_media.c:2585 Set comfort noise payload to 13</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">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]</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">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]</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">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]</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">2014-06-06 13:18:54.175210 [DEBUG] switch_core_media.c:2824 Set 2833 dtmf send payload to 101</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);">2014-06-06 13:18:54.175210 [DEBUG] switch_core_session.c:1005 Send signal sofia/external/0011104555391494140 [BREAK]</span><span style="font-size: 11px; font-family: Menlo;"><br></span><span style="font-size: 11px; font-family: Menlo; color: rgb(52, 187, 199);">2014-06-06 13:18:54.175210 [NOTICE] sofia.c:5868 Hangup sofia/external/0011104555391494140 [CS_CONSUME_MEDIA] [INCOMPATIBLE_DESTINATION]</span></div><div><br></div><div><br></div><div>However, our codec settings in vars.xml specify:</div><div><br></div><div>&nbsp;&nbsp;&lt;X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/&gt;<br>&nbsp;&nbsp;&lt;X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/&gt;</div><div><br></div><div>The sip profile uses these settings. &nbsp;Any idea how to debug what codecs Freeswitch is willing to accept?</div><div><br></div><div>Thanks!</div><div>+Mark</div></body></html>