<div dir="ltr">fyi <a href="https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation">https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 14, 2016 at 2:04 PM, Rajil Saraswat <span dir="ltr">&lt;<a href="mailto:rajil.s@gmail.com" target="_blank">rajil.s@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The siptrace is at <a href="http://pastebin.com/xiGqtj1Y" rel="noreferrer" target="_blank">http://pastebin.com/xiGqtj1Y</a><br>
<br>
The call is being made from 303 (Android/CSipsimple with OPUS codec)<br>
to 208 (pjsua test client with PCMU codec). The error is on line 545.<br>
<div class="HOEnZb"><div class="h5"><br>
On 14 February 2016 at 11:28, Giovanni Maruzzelli &lt;<a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a>&gt; wrote:<br>
&gt; How you originate the call? Is a bridge? From which phone?<br>
&gt;<br>
&gt; Also, please pastebin the complete sip trace (from start of leg A to end of<br>
&gt; both legs) and put here a link to pastebin<br>
&gt;<br>
&gt; Il 14/Feb/2016 03:54, &quot;Rajil Saraswat&quot; &lt;<a href="mailto:rajil.s@gmail.com">rajil.s@gmail.com</a>&gt; ha scritto:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I have a remote sip phone (Linksys SPA3102) which only supports PCMU.<br>
&gt;&gt; When I call to this remote sip phone i get a 406 error that opus is<br>
&gt;&gt; not supported as shown by the sip trace below. However, if I force the<br>
&gt;&gt; codec to absolute like this<br>
&gt;&gt; {absolute_codec_string=&#39;PCMU,PCMA&#39;}sofia/internal/<a href="mailto:303@192.168.1.5">303@192.168.1.5</a><br>
&gt;&gt; the call works fine.<br>
&gt;&gt;<br>
&gt;&gt; Is there anyway I can make FreeSWITCH to automatically transcode<br>
&gt;&gt; without forcing the codec string in the dial plan?<br>
&gt;&gt;<br>
&gt;&gt; The codec preferences is set as  global_codec_prefs=OPUS,PCMU,PCMA and<br>
&gt;&gt; outbound_codec_prefs=PCMU,PCMA,GSM<br>
&gt;&gt;<br>
&gt;&gt; ---------------------------siptrace--------------------------------<br>
&gt;&gt;<br>
&gt;&gt; recv 333 bytes from udp/[192.168.1.5]:5060 at 08:02:16.368499:<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------------------------<br>
&gt;&gt;    SIP/2.0 406 Not Acceptable<br>
&gt;&gt;    Via: SIP/2.0/UDP<br>
&gt;&gt;<br>
&gt;&gt; 192.168.1.111;rport=5060;received=192.168.1.111;branch=z9hG4bKeS356tttajjej<br>
&gt;&gt;    Call-ID: 00ff246a-4d66-1234-f4b2-74d02b7a3124<br>
&gt;&gt;    From: &quot;202&quot; &lt;<a href="mailto:sip%3A202@192.168.1.111">sip:202@192.168.1.111</a>&gt;;tag=DFX0FUvr2vNcm<br>
&gt;&gt;    To: &lt;<a href="mailto:sip%3A303@192.168.1.5">sip:303@192.168.1.5</a>&gt;;tag=htMF9ckdglw3EJRZaILd6XWt4uVKAO8q<br>
&gt;&gt;    CSeq: 87372504 INVITE<br>
&gt;&gt;    Content-Length:  0<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------------------------<br>
&gt;&gt; send 324 bytes to udp/[192.168.1.5]:5060 at 08:02:16.368591:<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------------------------<br>
&gt;&gt;    ACK <a href="mailto:sip%3A303@192.168.1.5">sip:303@192.168.1.5</a> SIP/2.0<br>
&gt;&gt;    Via: SIP/2.0/UDP 192.168.1.111;rport;branch=z9hG4bKeS356tttajjej<br>
&gt;&gt;    Max-Forwards: 68<br>
&gt;&gt;    From: &quot;202&quot; &lt;<a href="mailto:sip%3A202@192.168.1.111">sip:202@192.168.1.111</a>&gt;;tag=DFX0FUvr2vNcm<br>
&gt;&gt;    To: &lt;<a href="mailto:sip%3A303@192.168.1.5">sip:303@192.168.1.5</a>&gt;;tag=htMF9ckdglw3EJRZaILd6XWt4uVKAO8q<br>
&gt;&gt;    Call-ID: 00ff246a-4d66-1234-f4b2-74d02b7a3124<br>
&gt;&gt;    CSeq: 87372504 ACK<br>
&gt;&gt;    Content-Length: 0<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------------------------<br>
&gt;&gt; 2016-02-14 08:02:16.356283 [DEBUG] sofia.c:6760 Channel<br>
&gt;&gt; sofia/internal/<a href="mailto:303@192.168.1.5">303@192.168.1.5</a> entering state [terminated][406]<br>
&gt;&gt; 2016-02-14 08:02:16.356283 [NOTICE] sofia.c:7779 Hangup<br>
&gt;&gt; sofia/internal/<a href="mailto:303@192.168.1.5">303@192.168.1.5</a> [CS_CONSUME_MEDIA]<br>
&gt;&gt; [SERVICE_NOT_IMPLEMENTED]<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt; Rajil<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>