Hi Bogdan,<br> I put 2 log messages before and after record_route to make sure it gets executed.<br>But I dont's see those messages in log 1st scenario (2 route headers) while I can see both the message in log in 2nd scenario (1 route header).<br>
<br>Here I give INVITE messages in 1st scenario...<br><br><font size="1"><br></font><font><font size="1">INVITE <a href="http://sip:aa1@management.3clogic.com:5506">sip:aa1@management.3clogic.com:5506</a> SIP/2.0<br>Via: SIP/2.0/TCP 192.168.3.134:1323;rport;branch=z9hG4bKPj564512b7c47d4f1c91bf69b2616eea18<br>
Max-Forwards: 70<br>From: sip:aa1@management.3clogic.com:5506;tag=9fa0b4f78ee640dba4c6e0522c9c63a8<br>To: <a href="http://sip:aa1@management.3clogic.com:5506">sip:aa1@management.3clogic.com:5506</a><br>Contact: <sip:aa1@192.168.3.134:1321;transport=TCP;ob><br>
Call-ID: 8ba1014b656e4cdc968bcf4a9c92ae66<br>CSeq: 3514 INVITE<br><b>Route: <sip:23.20.79.160:7060;transport=TCP;lr><br>Route: <sip:208.109.191.105:8060;lr></b><br>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<br>
Supported: replaces, 100rel, timer, norefersub<br>Session-Expires: 300<br>Min-SE: 90<br>User-Agent: WebAstra<br>X-Info: normal;;P=;L=;S=Out;A=aa1;CI=;CS=1;PI=1;CP=1<br>Content-Type: application/sdp<br>Content-Length: 259</font><br>
</font><br>TCP Proxy fwds ...<br><font size="1"><br>INVITE <a href="http://sip:aa1@management.3clogic.com:5506">sip:aa1@management.3clogic.com:5506</a> SIP/2.0<br>Via: SIP/2.0/UDP 23.20.79.160:7060;branch=z9hG4bK9618.b76ba1d3.0;i=fe<br>
Via: SIP/2.0/TCP 192.168.3.134:1323;received=115.252.66.182;rport=1323;branch=z9hG4bKPj564512b7c47d4f1c91bf69b2616eea18<br>Max-Forwards: 69<br>From: sip:aa1@management.3clogic.com:5506;tag=9fa0b4f78ee640dba4c6e0522c9c63a8<br>
To: <a href="http://sip:aa1@management.3clogic.com:5506">sip:aa1@management.3clogic.com:5506</a><br>Contact: <sip:aa1@115.252.66.182:1323;transport=TCP;ob><br>Call-ID: 8ba1014b656e4cdc968bcf4a9c92ae66<br>CSeq: 3514 INVITE<br>
Route: <sip:208.109.191.105:8060;lr><br>Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS<br>Supported: replaces, 100rel, timer, norefersub<br>Session-Expires: 300<br>Min-SE: 90<br>
User-Agent: WebAstra<br>X-Info: normal;;P=;L=;S=Out;A=aa1;CI=;CS=1;PI=1;CP=1<br>Content-Type: application/sdp<br>Content-Length: 25</font><br><br><br>Thanx,<br>Gomtesh<br><br><br><div class="gmail_quote">On Thu, Aug 16, 2012 at 4:05 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div bgcolor="#ffffff" text="#000000">
<tt>You say you do record_route(), but no RR header is added to the
request ? this is a bit hard to believe ....are you sure your
script ends to the RR function ?<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
<br>
On 08/16/2012 01:23 PM, Gomtesh Jain wrote:
<blockquote type="cite">Hi Bogdan,<br>
I am doing ...<br>
<br>
if (!method=="REGISTER")<br>
{<br>
xlog("L_NOTICE", "Before Add Record Route TCP OPENSIPS
\n");<br>
record_route();<br>
xlog("L_NOTICE", "Add Record Route TCP OPENSIPS \n");<br>
}<br>
<br>
in my config .<br>
<br>
<br>
But in 1st scenario it does not add record route .So UA1 tries to
send ACK directly to "Other proxy". Which is wrong.<br>
<br>
<br>
While it adds record route in 2nd scenario and all signalling
works fine.<br>
<br>
<br>
Thanx,<br>
Gomtesh<br>
<br>
<br>
<br>
<br>
<div class="gmail_quote">On Thu, Aug 16, 2012 at 3:43 PM,
Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Gomtesh,
<div><br>
<br>
On 08/14/2012 04:10 PM, Gomtesh Jain wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<br>
I am running opensips 1.6 as TCP proxy. I am facing
problem when I use multiple proxy in my N/w.<br>
<br>
UA1------> TCP proxy(opensips 1.6)------->Other
Proxy--------> UA2<br>
<br>
UA1 adds 2 Route headers in INVITE.<br>
In this scenario TCP proxy does not add Record Route in
INVITE.<br>
</blockquote>
</div>
How comes ?? don;t you do record_route() on the opensips ??
<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
<br>
UA1------> TCP proxy(opensips 1.6)------------> UA2<br>
<br>
UA1 add only 1 Route header.<br>
In this scenario It works fine with the same conf.<br>
</blockquote>
</div>
What "fine" means ? It means opensips adds on route ? or ?<br>
<br>
Regards,<br>
Bogdan<br>
</blockquote>
</div>
<br>
</blockquote>
</div></div></div>
</blockquote></div><br>