Greetings,<br>I am confused at some functionality I am seeing with Kamailio 1.5.4.  I know this is an old version, but I don&#39;t have the time to go through a lengthy upgrade process right now.  The issue I am seeing is that the server is inserting a Route header with it&#39;s own IP address for an unknown reason.  Here is the initial invite (removed SDP for simplicity):<br>
<br>INVITE <a href="http://sip:13@67.207.130.146:5060">sip:13@67.207.130.146:5060</a> SIP/2.0<br>Via: SIP/2.0/UDP 68.64.220.108:5060;branch=z9hG4bK78dd33c6;rport<br>From: &quot;WIRELESS CALLER&quot; &lt;<a href="mailto:sip%3A9546496707@dev-asterisk.mydomain.com">sip:9546496707@dev-asterisk.mydomain.com</a>&gt;;tag=as1cad6370<br>
To: &lt;<a href="http://sip:13@67.207.130.146:5060">sip:13@67.207.130.146:5060</a>&gt;<br>Contact: &lt;<a href="mailto:sip%3A9546496707@68.64.220.108">sip:9546496707@68.64.220.108</a>&gt;<br>Call-ID: <a href="mailto:43134ece101abfca6ecab20212295909@dev-asterisk.mydomain.com">43134ece101abfca6ecab20212295909@dev-asterisk.mydomain.com</a><br>
CSeq: 102 INVITE<br>User-Agent: G-Tel v1.0<br>Max-Forwards: 70<br>Remote-Party-ID: &quot;WIRELESS CALLER&quot; &lt;<a href="mailto:sip%3A9546496707@dev-asterisk.mydomain.com">sip:9546496707@dev-asterisk.mydomain.com</a>&gt;;privacy=off;screen=no<br>
Date: Tue, 01 May 2012 18:17:50 GMT<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO<br>Supported: replaces<br>Route: &lt;<a href="mailto:sip%3A13@boulder-voip.mydomain.com">sip:13@boulder-voip.mydomain.com</a>&gt;<br>
P-Account-ID: 99990023<br>P-Proxy-Route: Yes<br>Content-Type: application/sdp<br>Content-Length: 240<br><br>The basics of what happen next are:<br><br>t_check_trans();<br>record_route();<br>remove_hf(&quot;P-Proxy-Route&quot;);<br>
if(loose_route()){<br>   route(3);<br>}<br><br><br>route[3]{<br>        t_on_reply(&quot;1&quot;);<br>        if(!t_relay()){<br>                sl_reply_error();<br>        }<br>}<br><br>The INVITE that goes out has the funky Route: header with the Kamailio IP in there.  This is causing problems for some of the upstream proxy servers (obviously).  <br>
<br>INVITE <a href="mailto:sip%3A13@boulder-voip.mydomain.com">sip:13@boulder-voip.mydomain.com</a> SIP/2.0<br>Record-Route: &lt;sip:67.207.130.146;lr;ftag=as1cad6370&gt;<br>Via: SIP/2.0/UDP 67.207.130.146;branch=z9hG4bKf183.456d51e1.0<br>
Via: SIP/2.0/UDP 68.64.220.108:5060;received=68.64.220.108;branch=z9hG4bK78dd33c6;rport=5060<br>From: &quot;WIRELESS CALLER&quot; &lt;<a href="mailto:sip%3A9546496707@dev-asterisk.mydomain.com">sip:9546496707@dev-asterisk.mydomain.com</a>&gt;;tag=as1cad6370<br>
To: &lt;<a href="http://sip:13@67.207.130.146:5060">sip:13@67.207.130.146:5060</a>&gt;<br>Contact: &lt;<a href="mailto:sip%3A9546496707@68.64.220.108">sip:9546496707@68.64.220.108</a>&gt;<br>Call-ID: <a href="mailto:43134ece101abfca6ecab20212295909@dev-asterisk.mydomain.com">43134ece101abfca6ecab20212295909@dev-asterisk.mydomain.com</a><br>
CSeq: 102 INVITE<br>User-Agent: G-Tel v1.0<br>Max-Forwards: 69<br>Remote-Party-ID: &quot;WIRELESS CALLER&quot; &lt;<a href="mailto:sip%3A9546496707@dev-asterisk.mydomain.com">sip:9546496707@dev-asterisk.mydomain.com</a>&gt;;privacy=off;screen=no<br>
Date: Tue, 01 May 2012 18:17:50 GMT<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO<br>Supported: replaces<br>P-Account-ID: 99990023<br>Content-Type: application/sdp<br>Content-Length: 240<br>Route: &lt;<a href="http://sip:13@67.207.130.146:5060">sip:13@67.207.130.146:5060</a>&gt;<br>
<br><br>Any idea what may be causing this to happen and how I could prevent it?  I have tried removing the Route header using the remove_hf(&quot;Route&quot;) before doing the t_relay, but that doesn&#39;t seem to help.<br>
<br>Thanks,<br>Geoff<br><br><br>