<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>RE: From field comparisons</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Arial">I have SER version 0.8.14 running as a proxy, registrar, and location server.&nbsp; It works great, but I have encountered one problem.&nbsp; When I call from my PingTel SIP phone to an IP enabled IVR, and the IVR responds with &#8220;404 Not found&#8221;, SER sends an ACK to the IVR and forwards the 404 to the PingTel phone.&nbsp; All that is fine, but when the PingTel phone sends back its ACK, SER does not find the transaction to associate it with.&nbsp; It forwards the ACK to the IVR, then a timer fires and the 404 is resent to the PingTel because SER does not think it has gotten the ACK.&nbsp; I have determined that the problem is in modules/tm/t_lookup.c, around line 450, where it says &#8220;if (! EQ_LEN(from)) continue;&#8221;&nbsp; </FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New">The original INVITE contained a From value of </FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New">&#8220;sip:7216@wic.west.com;tag=1c8140&#8221;</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New">While the ACK contains a From value of</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New">&#8220;&lt;sip:7216@wic.west.com&gt;;tag=1c8140&#8221;</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New">According to RFC3261, Section 20.20, these should be considered identical, but SER does not see it that way because the angle brackets make the length different (the SIP stack on the IVR adds them in its responses).&nbsp; I have only seen this behavior when a failure response code is returned, if I get a &#8220;200 Ok&#8221;, everything works fine.</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New">I&#8217;ve</FONT></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000000" SIZE=2 FACE="Courier New">tried</FONT></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000000" SIZE=2 FACE="Courier New">attach</FONT></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New">ing</FONT></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New"> a log of the SIP messages recorded by the PingTel phone, and the log from SER</FONT></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New">, but the</FONT></SPAN><SPAN LANG="en-us"> <FONT COLOR="#000000" SIZE=2 FACE="Courier New">list seems to have a problem with attachments</FONT></SPAN><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New">.</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=2 FACE="Courier New">Dave Wearne</FONT></SPAN></P>
<BR>

</BODY>
</HTML>