<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-dev] SIP Timeout waiting for 200 ACK</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I am dealing with the same problem... Brian, there is something wrong here. The effect is my calls get terminated every two minutes +hen my sipura re-registers. I have a trace with full debug captured if you want to see.<BR>
<BR>
Michael Murdock<BR>
VP Operations &amp; Development<BR>
Switchmaxx Product Line<BR>
125 N. Market. Suite 1520<BR>
Wichita KS. 67202<BR>
(316) 932-2693<BR>
<BR>
&nbsp;-----Original Message-----<BR>
From: &nbsp; Brian West [<A HREF="mailto:brian.west@mac.com">mailto:brian.west@mac.com</A>]<BR>
Sent:&nbsp;&nbsp; Tuesday, May 29, 2007 10:14 AM Eastern Standard Time<BR>
To:&nbsp;&nbsp;&nbsp;&nbsp; freeswitch-dev@lists.freeswitch.org<BR>
Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Re: [Freeswitch-dev] SIP Timeout waiting for 200 ACK<BR>
<BR>
I think that since we are a B2BUA tech_pvt-&gt;profile-&gt;url is the right&nbsp;<BR>
way.&nbsp; The other way is correct if you're a proxy.&nbsp; Remember&nbsp;<BR>
FreeSWITCH NOT a proxy.<BR>
<BR>
/b<BR>
<BR>
On May 29, 2007, at 8:58 AM, freeswitch@dalethatcher.com wrote:<BR>
<BR>
&gt; I'm seeing an issue during a bridge where the '200' from freeswitch is<BR>
&gt; not being ACK'd and Freeswitch is correctly dropping the connection.<BR>
&gt; However I belive that the Contact header in the 200 packet is causing<BR>
&gt; the problem.&nbsp; Am I missing a config parameter?<BR>
&gt;<BR>
&gt; If I back out the revision 5208 change to mod_sofia.c from the trunk<BR>
&gt; source then the problem goes away. (SIPTAG_CONTACT_STR(tech_pvt-<BR>
&gt; &gt;to_uri)<BR>
&gt; back to SIPTAG_CONTACT_STR(tech_pvt-&gt;profile-&gt;url)).<BR>
&gt;<BR>
&gt; My test setup is (Freeswitch is behind a NAT):<BR>
&gt;<BR>
&gt;&nbsp;&nbsp; External SIP -&gt; Freeswitch -&gt; Gizmo<BR>
&gt;<BR>
&gt; The freeswitch config for the extension is:<BR>
&gt;<BR>
&gt;&nbsp;&nbsp; &lt;extension name=&quot;test&quot;&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^test$&quot;&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;sofia/gizmo/<BR>
&gt; 17470355893@proxy01.sipphone.com&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>
&gt;&nbsp;&nbsp; &lt;/extension&gt;<BR>
&gt;<BR>
&gt; I've put a full copy of the log here:<BR>
&gt;<BR>
&gt;&nbsp;&nbsp; <A HREF="http://pastebin.freeswitch.org/3008">http://pastebin.freeswitch.org/3008</A><BR>
&gt;<BR>
&gt; My internet facing profile is:<BR>
&gt;<BR>
&gt;&nbsp;&nbsp; &lt;profile name=&quot;internet&quot;&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;settings&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;debug&quot; value=&quot;1&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;rfc2833-pt&quot; value=&quot;101&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;sip-port&quot; value=&quot;5060&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;dtmf-duration&quot; value=&quot;100&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;codec-ms&quot; value=&quot;20&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;use-rtp-timer&quot; value=&quot;true&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;rtp-timer-name&quot; value=&quot;soft&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;rtp-ip&quot; value=&quot;$${bind_server_ip}&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;sip-ip&quot; value=&quot;$${bind_server_ip}&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;accept-blind-reg&quot; value=&quot;true&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;nonce-ttl&quot; value=&quot;60&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;ext-rtp-ip&quot; value=&quot;80.189.98.58&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;ext-sip-ip&quot; value=&quot;80.189.98.58&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;sip-domain&quot; value=&quot;sip.dalethatcher.com&quot;/&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/settings&gt;<BR>
&gt;&nbsp;&nbsp; &lt;/profile&gt;<BR>
&gt;<BR>
&gt; With the current trunk the SIP packet that does not get a response is:<BR>
&gt;<BR>
&gt;&nbsp;&nbsp; send 1182 bytes to udp/[193.111.201.32]:5060 at 13:05:15.136189:<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&gt; ----------------------------------------------------------------------<BR>
&gt; --<BR>
&gt;&nbsp;&nbsp;&nbsp; SIP/2.0 200 OK<BR>
&gt;&nbsp;&nbsp;&nbsp; Via: SIP/2.0/UDP 193.111.201.32;branch=z9hG4bK614f.db2cc426.0<BR>
&gt;&nbsp;&nbsp;&nbsp; Via: SIP/2.0/UDP 193.111.200.182;branch=z9hG4bK614f.9dbef354.0<BR>
&gt;&nbsp;&nbsp;&nbsp; Via: SIP/2.0/UDP&nbsp;<BR>
&gt; 194.145.189.10:3670;branch=z9hG4bK00E0F556495005A857E00000230F<BR>
&gt;&nbsp;&nbsp;&nbsp; Record-Route: &lt;sip:<BR>
&gt; 193.111.201.32;lr=on;ftag=00E0F556495005A857E00000222A&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp; Record-Route: &lt;sip:<BR>
&gt; 193.111.200.182;lr=on;ftag=00E0F556495005A857E00000222A&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp; From: &lt;sip:<BR>
&gt; 02085555129@194.145.189.10&gt;;tag=00E0F556495005A857E00000222A<BR>
&gt;&nbsp;&nbsp;&nbsp; To: &lt;sip:442070968842@193.111.200.182&gt;;tag=r5ae93vm8aK1p<BR>
&gt;&nbsp;&nbsp;&nbsp; Call-ID: 00E0F556495005A857E000001549@194.145.189.10<BR>
&gt;&nbsp;&nbsp;&nbsp; CSeq: 35816 INVITE<BR>
&gt;&nbsp;&nbsp;&nbsp; Contact: &lt;sip:442070968842@193.111.200.182:5060&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp; User-Agent: FreeSWITCH(mod_sofia)<BR>
&gt;&nbsp;&nbsp;&nbsp; Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE,&nbsp;<BR>
&gt; SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO<BR>
&gt;&nbsp;&nbsp;&nbsp; Supported: 100rel, precondition<BR>
&gt;&nbsp;&nbsp;&nbsp; Content-Type: application/sdp<BR>
&gt;&nbsp;&nbsp;&nbsp; Content-Disposition: session<BR>
&gt;&nbsp;&nbsp;&nbsp; Content-Length: 290<BR>
&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp; v=0<BR>
&gt;&nbsp;&nbsp;&nbsp; o=FreeSWITCH 6489556414011969222 9057524047013517960 IN IP4&nbsp;<BR>
&gt; 192.168.93.5<BR>
&gt;&nbsp;&nbsp;&nbsp; s=FreeSWITCH<BR>
&gt;&nbsp;&nbsp;&nbsp; c=IN IP4 80.189.98.58<BR>
&gt;&nbsp;&nbsp;&nbsp; t=0 0<BR>
&gt;&nbsp;&nbsp;&nbsp; a=sendrecv<BR>
&gt;&nbsp;&nbsp;&nbsp; m=audio 10002 RTP/AVP 0 96 13<BR>
&gt;&nbsp;&nbsp;&nbsp; a=rtpmap:0 PCMU/8000<BR>
&gt;&nbsp;&nbsp;&nbsp; a=rtpmap:96 telephone-event/8000<BR>
&gt;&nbsp;&nbsp;&nbsp; a=fmtp:96 0-16<BR>
&gt;&nbsp;&nbsp;&nbsp; a=rtpmap:13 CN/8000<BR>
&gt;&nbsp;&nbsp;&nbsp; a=ptime:20<BR>
&gt;&nbsp;&nbsp;&nbsp; m=image 0 UDPTL 9<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&gt; ----------------------------------------------------------------------<BR>
&gt; --<BR>
&gt;<BR>
&gt; Backing out the change modifies the Contact header to:<BR>
&gt;<BR>
&gt;&nbsp;&nbsp; Contact: &lt;sip:mod_sofia@80.189.98.58:5060&gt;<BR>
&gt;<BR>
&gt; Which gets an ACK packet and doesn't drop the call.<BR>
&gt;<BR>
&gt; thanks,<BR>
&gt;<BR>
&gt; - Dale<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Freeswitch-dev mailing list<BR>
&gt; Freeswitch-dev@lists.freeswitch.org<BR>
&gt; <A HREF="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</A><BR>
&gt; UNSUBSCRIBE:<A HREF="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</A><BR>
&gt; <A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A><BR>
<BR>
<BR>
_______________________________________________<BR>
Freeswitch-dev mailing list<BR>
Freeswitch-dev@lists.freeswitch.org<BR>
<A HREF="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</A><BR>
UNSUBSCRIBE:<A HREF="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</A><BR>
<A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A><BR>
</FONT>
</P>

</BODY>
</HTML>