<div>I&#39;ve done some debugging and found the problem (but not the cause).</div><div><br></div><div>switch_core_session_perform_receive_message fails to switch_core_session_read_lock the session (error code: 720258).</div>
<div><br></div><div>Should I post it as a jira issue?</div><div><br></div><div>What does 720258 mean?</div><div><br><div class="gmail_quote">On Fri, Aug 27, 2010 at 1:36 PM, Jonas Gauffin <span dir="ltr">&lt;<a href="mailto:jonas.gauffin@gmail.com" target="_blank">jonas.gauffin@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">
<div>Excellent information thanks. The server is a dedicated voip server and nothing else is running on it (and therefore the port should be free).</div>
<div> </div>
<div>I&#39;ve talked to my voip provider and they were kind enough to give me their traces.</div>
<div> </div>
<div>Freeswitch get&#39;s their SDP on the bleg (their software have modified the trace a bit):</div>
<div> </div>
<div>SIP/2.0 183 Session Progress<br>Via: SIP/2.0/UDP 212.247.E.E;rport=5060;branch=z9hG4bK52XcXtpQBp3BH<br>From: &quot;blablabla&quot; &lt;sip:02345678@212.247.E.E&gt;;tag=rccD75cXD61Kr<br>To: &lt;<a href="mailto:sip%3A0771221122@voipprovider.se" target="_blank">sip:0771221122@voipprovider.se</a>&gt;;tag=686577264<br>


Call-ID: c3e8e0e8-2c3c-122e-479c-1fc6e9408ca4<br>CSeq: 1106961 INVITE<br>Contact: &lt;sip:0771221122@212.151.Y.Y:5060&gt;<br>Record-Route: &lt;sip:130.244.Z.Z;lr;ftag=rccD75cXD61Kr;t2diag=c82.4127173&gt;<br>Allow: INVITE,ACK,PRACK,SUBSCRIBE,BYE,CANCEL,NOTIFY,INFO,REFER,UPDATE<br>


Content-Type: application/sdp<br>Content-Length: 169</div>
<div> </div>
<div>v=0<br>o=- 46541649 0 IN IP4 130.244.x.x<br>s=Cisco SDP 0<br>c=IN IP4 130.244.x.x<br>t=0 0<br>m=audio 18928 RTP/AVP 8 101<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15</div>
<div> </div>
<div>which makes FS cancel the call leg:</div>
<div><br>CANCEL <a href="mailto:sip%3A0771221122@voipprovider.se" target="_blank">sip:0771221122@voipprovider.se</a> SIP/2.0<br>Via: SIP/2.0/UDP 212.247.E.E;rport;branch=z9hG4bK52XcXtpQBp3BH<br>Max-Forwards: 68<br>From: &quot;blablabla&quot; &lt;sip:02345678@212.247.E.E&gt;;tag=rccD75cXD61Kr<br>


To: &lt;<a href="mailto:sip%3A0771221122@voipprovider.se" target="_blank">sip:0771221122@voipprovider.se</a>&gt;<br>Call-ID: c3e8e0e8-2c3c-122e-479c-1fc6e9408ca4<br>CSeq: 1106961 CANCEL<br>Reason: Q.850;cause=88;text=&quot;INCOMPATIBLE_DESTINATION&quot;<br>


Content-Length: 0<br></div><div><div></div><div>
<div> </div>
<div> </div>
<div> </div>
<div class="gmail_quote">On Fri, Aug 27, 2010 at 9:57 AM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">Yes, G.729a and G.729b are incorrect and your device is at fault... only other phones of the same type would probably recognise it without issue.<br>


<br>PCMA should be used in this case though.<br><br>RTP payload numbers are spread through multiple RFCs. Anything in the 96-127 range is dynamic and the codec is determined from the matching rtpmap line, any of the static numbers don&#39;t need a rtpmap line to work. IANA oversees assignment of the static numbers and they have the full list: <a href="http://www.iana.org/assignments/rtp-parameters" target="_blank">http://www.iana.org/assignments/rtp-parameters</a><br>


<br>As you can see 0=PCMU, 8=PCMA, and G.729 should use 18. Support of annex B is specified in the fmtp parameter, not the codec name - e.g. &quot;a=fmtp:18 annexb=no&quot;. Annex A never needs to be specified as it can be read normally by plain G.729, so it&#39;s just up to the implementation on whether it wants to save quality or cpu when encoding.<br>


<br>Do you have any other applications running which would also be using the RTP port range? A call will fail if it tries to use a port that&#39;s already in use, perhaps with that message. FS should avoid using ports it&#39;s already using, but can&#39;t know about any other programs on the system.<br>


<br>-Steve 
<div>
<div></div>
<div><br><br><br>
<div class="gmail_quote">On 27 August 2010 08:03, Jonas Gauffin <span dir="ltr">&lt;<a href="mailto:jonas.gauffin@gmail.com" target="_blank">jonas.gauffin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex" class="gmail_quote">
<div>It doesn&#39;t happen every time and it&#39;s on a production system with a bit of volume. therefore a bit hard to get SIP traces. I&#39;ll try if Anthony really needs them.</div>
<div> </div>
<div>FS do say this: </div>
<div><span>2010</span><span>-08</span><span>-27</span> <span>07</span>:<span>14</span>:<span>10.758750</span> <span>[</span>DEBUG<span>]</span> switch_ivr_originate.c:<span>3111</span> sofia/external/<span>0700123456</span>@<span>212.151</span>.Y.Y:<span>5060</span> Media Establishment Failed</div>



<div> </div>
<div>In which RFC are codec names defined? rfc3551 defines &quot;G729&quot; but no &quot;G.729A&quot; or &quot;G.729B&quot;. But as you say, shouldn&#39;t FS use PCMA in any case?</div>
<div>
<div></div>
<div>
<div><br><br> </div>
<div class="gmail_quote">On Fri, Aug 27, 2010 at 8:43 AM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">Ordinarily it&#39;d mean there was a problem with the codecs (e.g. needing to use an unsupported codec or transcode a codec that only works as a passthrough one).<br>


<br>Looks like it should have gone through with PCMA (8) though. Can you repeat the call with sip trace on? Perhaps the incompatible destination comes from an endpoint.<br><br>&#39;sofia profile &lt;profilename&gt; siptrace on&#39; from the CLI, replace on with off to turn it off again.<br>


<br>-Steve<br><br><br><br>
<div class="gmail_quote">
<div>
<div></div>
<div>On 27 August 2010 07:26, Jonas Gauffin <span dir="ltr">&lt;<a href="mailto:jonas.gauffin@gmail.com" target="_blank">jonas.gauffin@gmail.com</a>&gt;</span> wrote:<br></div></div>
<blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex" class="gmail_quote">
<div>
<div></div>
<div>
<div>Hello,</div>
<div> </div>
<div>Why do this call result in INCOMPATIBLE_DESTINATION?</div>
<div> </div>
<div><a href="http://pastebin.freeswitch.org/13736" target="_blank">http://pastebin.freeswitch.org/13736</a></div>
<div> </div>
<div>Regards,</div>
<div>  Jonas</div><br></div></div>
<div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>


UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>


<br></div></blockquote></div><br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>


<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>


<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br></div></div><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>


<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>


<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br></div></div><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>


<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>


<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br>
</div></div></blockquote></div><br></div>