<div dir="ltr"><div><div>while googling i found following suggestion which is provided by you and it is also not working, I did SIP trace on both asterisk and opensip and found asterisk doesn't know about transaction because missing VIA: and its not sending BYE but it is just sending INVITE and opensip sending 200OK back.. I don't know why Asterisk not sending BYE. <br>
<br></div>Note: if i remove topology_hiding() then asterisk sending proper BYE message and everything works!! <br><br></div>some how i am not seeing loose_route executing anytime in script, opensips doesn't touching loose_route function at all.. <br>
<div><div><div><br><pre>if (loose_route() || match_dialog()) {
if ($DLG_status==NULL {
xlog("Failed to match the sequential request to a known
dialog\n");
} else {
if (!validate_dialog())
fix_route_dialog();
# continue your in-dialog requests processing as usual
}
}</pre><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 26, 2014 at 8:38 AM, Satish Patel <span dir="ltr"><<a href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I have tried your logic and it works but it is not handling BYE message, after caller hang up phone, caller not receiving BYE and caller phone is still in connected state not getting hung up. <br>
<br>Sent from my iPhone</div><div><div class="h5"><div><br>On Aug 26, 2014, at 5:09 AM, Vlad Paiu <<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>> wrote:<br><br></div><blockquote type="cite">
<div>
<div>Hello,<br>
<br>
You must call topology_hiding() before t_relay() - please try
that.<br>
Also, make sure to change your sequential request handling from<br>
<br>
if (loose_route())<br>
<br>
to<br>
<br>
if (loose_route() || match_dialog())<br>
<br>
<br>
Best Regards,<br>
<pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre>
On 26.08.2014 06:48, Satish Patel wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>I have put topology_hiding() function at following place
in script but its not hiding VIA header following is my
senerio<br>
<br>
</div>
[UA]-------->[Opensips]-----------[Asterisk/SIP gateway]<br>
<br>
</div>
I want to hind my UA IP address so Asterisk doesn't see them,
currently my asterisk can see what IP address UA coming from,
where should i put them generally <br>
<br>
<br>
if (is_method("INVITE")) {<br>
...<br>
...<br>
if ( uri=~<a href="mailto:%5Esip:[0-9]*@.*" target="_blank">"^sip:[0-9]*@.*"</a>) {<br>
uac_replace_from("<a href="mailto:sip%3A4545@65.111.170.127" target="_blank">sip:4545@65.111.170.127</a>");<br>
t_on_failure("3");<br>
resetflag(7);<br>
t_relay( "udp:<a href="http://65.111.170.127:5065" target="_blank">65.111.170.127:5065</a>" );<br>
topology_hiding();<br>
exit;<br>
};<br>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<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></blockquote></div></div></div></blockquote></div><br></div>