<div dir="ltr">OK got the point. May be I should save some avp at the time of outgoing requests and then check for that in failure route.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 9, 2015 at 6:29 PM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><tt>Hi, John!<br>
<br>
In failure_route[] you process the request. Therefore the $si is
the IP address of the request, not the reply.<br>
If you want to print the IP address of the replies, you have to
print them in onreply_route[].<br>
<br>
Best regards,<br>
</tt>
<pre cols="72">Răzvan Crainea
OpenSIPS Solutions
<a href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre><span class="">
On 01/09/2015 02:26 PM, John Nash wrote:<br>
</span></div>
<blockquote type="cite"><span class="">
<div dir="ltr">
<div>I just noticed something odd when I print $si to know
source IP of failed responses (In failure route) I think its
not printing correct address (It works as expected in main
routing block).<br>
<br>
</div>
May be its something wrong I am doing which resulted this I just
thought I will check with others. <br>
</div>
<br>
<fieldset></fieldset>
<br>
</span><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>