<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.51">
<TITLE>Problem with sl_send_reply: I won't send a reply for ACK.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello list.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">I'm facing a problem with a UAC and i was hoping that someone can give me a hand here.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">I have a IP Phone calling to a PSTN number through SER and then a GW.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">10.0.0.243 : IP Phone</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">10.0.0.246 : SER SIP Proxy</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">10.0.0.239 : GW SIP PSTN</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">When the call is established and the &quot;200 - OK&quot; message arrives from the GW to the Proxy,&nbsp; the proxy re-route the message back to the Client, and finally the client respond with an ACK.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Here is when te problem begins, i'm not sure if the ACK is the problem or maybe is a bug with my SER box.&nbsp; I'm using the Getting Started ser.cfg from iptel.org.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">You can see the debug here:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">U 10.0.0.239:5060 -&gt; 10.0.0.246:5060</FONT>

<BR><FONT SIZE=2 FACE="Arial">SIP/2.0 200 OK.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Via: SIP/2.0/UDP 10.0.0.246;branch=z9hG4bK34e7.0648f244.0.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Via: SIP/2.0/UDP 10.0.0.243:5060;rport=5060;branch=z9hG4bK407006395.</FONT>

<BR><FONT SIZE=2 FACE="Arial">From: &lt;sip:5501234567@sipvoiss.desa.mydomain.net&gt;;tag=139103625.</FONT>

<BR><FONT SIZE=2 FACE="Arial">To: &lt;sip:0101005622408196@sipvoiss.desa.mydomain.net&gt;;tag=d745f073a4.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Call-ID: 90212623@10.0.0.243.</FONT>

<BR><FONT SIZE=2 FACE="Arial">CSeq: 21 INVITE.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Supported: timer, replaces, early-session.</FONT>

<BR><FONT SIZE=2 FACE="Arial">User-Agent: A SIP Gateway.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Contact: sip:005622408196@10.0.0.239.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, REFER, NOTIFY, INFO.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Content-Type: application/sdp.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Content-Length: 247.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Record-Route: &lt;sip:10.0.0.246;ftag=139103625;lr=on&gt;.</FONT>

<BR><FONT SIZE=2 FACE="Arial">.</FONT>

<BR><FONT SIZE=2 FACE="Arial">v=0.</FONT>

<BR><FONT SIZE=2 FACE="Arial">o=005622408196 1170173661 1170173661 IN IP4 10.0.0.239.</FONT>

<BR><FONT SIZE=2 FACE="Arial">s=A Gateway SDP.</FONT>

<BR><FONT SIZE=2 FACE="Arial">c=IN IP4 10.0.0.239.</FONT>

<BR><FONT SIZE=2 FACE="Arial">t=1170173661 0.</FONT>

<BR><FONT SIZE=2 FACE="Arial">m=audio 23614 RTP/AVP 18 101.</FONT>

<BR><FONT SIZE=2 FACE="Arial">a=rtpmap:18 G729/8000/1.</FONT>

<BR><FONT SIZE=2 FACE="Arial">a=rtpmap:101 telephone-event/8000/1.</FONT>

<BR><FONT SIZE=2 FACE="Arial">a=fmtp:101 0-15.</FONT>

<BR><FONT SIZE=2 FACE="Arial">a=ptime:20.</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">U 10.0.0.246:5060 -&gt; 10.0.0.243:5060</FONT>

<BR><FONT SIZE=2 FACE="Arial">SIP/2.0 200 OK.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Via: SIP/2.0/UDP 10.0.0.243:5060;rport=5060;branch=z9hG4bK407006395.</FONT>

<BR><FONT SIZE=2 FACE="Arial">From: &lt;sip:5501234567@sipvoiss.desa.mydomain.net&gt;;tag=139103625.</FONT>

<BR><FONT SIZE=2 FACE="Arial">To: &lt;sip:0101005622408196@sipvoiss.desa.mydomain.net&gt;;tag=d745f073a4.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Call-ID: 90212623@10.0.0.243.</FONT>

<BR><FONT SIZE=2 FACE="Arial">CSeq: 21 INVITE.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Supported: timer, replaces, early-session.</FONT>

<BR><FONT SIZE=2 FACE="Arial">User-Agent: A SIP Gateway.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Contact: sip:005622408196@10.0.0.239.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, REFER, NOTIFY, INFO.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Content-Type: application/sdp.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Content-Length: 247.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Record-Route: &lt;sip:10.0.0.246;ftag=139103625;lr=on&gt;.</FONT>

<BR><FONT SIZE=2 FACE="Arial">.</FONT>

<BR><FONT SIZE=2 FACE="Arial">v=0.</FONT>

<BR><FONT SIZE=2 FACE="Arial">o=005622408196 1170173661 1170173661 IN IP4 10.0.0.239.</FONT>

<BR><FONT SIZE=2 FACE="Arial">s=A Gateway SDP.</FONT>

<BR><FONT SIZE=2 FACE="Arial">c=IN IP4 10.0.0.239.</FONT>

<BR><FONT SIZE=2 FACE="Arial">t=1170173661 0.</FONT>

<BR><FONT SIZE=2 FACE="Arial">m=audio 23614 RTP/AVP 18 101.</FONT>

<BR><FONT SIZE=2 FACE="Arial">a=rtpmap:18 G729/8000/1.</FONT>

<BR><FONT SIZE=2 FACE="Arial">a=rtpmap:101 telephone-event/8000/1.</FONT>

<BR><FONT SIZE=2 FACE="Arial">a=fmtp:101 0-15.</FONT>

<BR><FONT SIZE=2 FACE="Arial">a=ptime:20.</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">U 10.0.0.243:5060 -&gt; 10.0.0.246:5060</FONT>

<BR><FONT SIZE=2 FACE="Arial">ACK sip:0101005622408196@sipvoiss.desa.mydomain.net SIP/2.0.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Via: SIP/2.0/UDP 10.0.0.243:5060;rport;branch=z9hG4bK1227697472.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Route: &lt;sip:10.0.0.246;ftag=139103625;lr=on&gt;.</FONT>

<BR><FONT SIZE=2 FACE="Arial">From: &lt;sip:5501234567@sipvoiss.desa.mydomain.net&gt;;tag=139103625.</FONT>

<BR><FONT SIZE=2 FACE="Arial">To: &lt;sip:0101005622408196@sipvoiss.desa.mydomain.net&gt;;tag=d745f073a4.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Call-ID: 90212623@10.0.0.243.</FONT>

<BR><FONT SIZE=2 FACE="Arial">CSeq: 21 ACK.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Contact: &lt;sip:5501234567@10.0.0.243:5060&gt;.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Max-Forwards: 70.</FONT>

<BR><FONT SIZE=2 FACE="Arial">User-Agent: S SIP User Agent / 1.10.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Content-Length: 0.</FONT>

<BR><FONT SIZE=2 FACE="Arial">.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Is this ACK ok?.&nbsp; The ACK hits the &quot;Sanity Checks&quot; (Max Forwards) and then breaks sending to console : &quot;Warning: sl_send_reply: I won't send a reply for ACK!!&quot;</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I was reading the RFC3261 because i'm not sure about the R-URI from this endpoint.&nbsp; Let me explain :</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">RFC3261 : Section 12.1.2</FONT>
</P>

<P><SPAN LANG="es-cl"><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp; The route set MUST be set to the list of URIs in the Record-Route</FONT></SPAN>

<BR><SPAN LANG="es-cl"><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp; header field from the response, taken in reverse order and preserving</FONT></SPAN>

<BR><SPAN LANG="es-cl"><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp; all URI parameters.&nbsp; If no Record-Route header field is present in</FONT></SPAN>

<BR><SPAN LANG="es-cl"><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp; the response, the route set MUST be set to the empty set.&nbsp; This route</FONT></SPAN>

<BR><SPAN LANG="es-cl"><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp; set, even if empty, overrides any pre-existing route set for future</FONT></SPAN>

<BR><SPAN LANG="es-cl"><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp; requests in this dialog.&nbsp;<B> The remote target MUST be set to the URI</B></FONT></SPAN>

<BR><SPAN LANG="es-cl"><B><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp; from the Contact header field of the response.</FONT></B></SPAN>
</P>

<P><SPAN LANG="es"><FONT SIZE=2 FACE="Arial">So, if this is correct the R-URI from the ACk must be set to</FONT> <FONT SIZE=2 FACE="Arial">sip:005622408196@10.0.0.239, and not the sip:0101005622408196@sipvoiss.desa.mydomain.net.</FONT></SPAN></P>

<P><SPAN LANG="es"><FONT SIZE=2 FACE="Arial">Is this ok?.</FONT></SPAN>

<BR><SPAN LANG="es"><FONT SIZE=2 FACE="Arial">I think this is causing the ACK problem in my SER box.</FONT></SPAN>
</P>

<P><SPAN LANG="es"><FONT SIZE=2 FACE="Arial">Can someone help me here?</FONT></SPAN>

<BR><SPAN LANG="es"><FONT SIZE=2 FACE="Arial">Thanks in advance.</FONT></SPAN>
</P>

<P><SPAN LANG="es"><FONT SIZE=2 FACE="Arial">Best Regards,</FONT></SPAN>

<BR><SPAN LANG="es"><FONT SIZE=2 FACE="Arial">Ricardo Martinez.-</FONT></SPAN>
</P>

</BODY>
</HTML>