Hi,<br><br>For BYEs: when you process the INVITE you can add a special parameter to
record-route header that you will check in the route header of your BYE.<br><br>++ I tested this.<br>I am adding nat=yes in record-route when caller is detected behind NAT.<br>& When processing BYE , I checked whether nat=yes does exist into Record header or not.<br>
If it does then & then do end_media_session.<br><br>But if caller is having public IP then this is not working.<br><br>Thanks,<br>Krunal Patel<br>
<br><br><div class="gmail_quote">On Thu, Dec 18, 2008 at 2:50 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<div class="Ih2E3d"><br>
<br>
On 12/18/08 10:54, Krunal Patel wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Does anybody know how to detect whether use_media_proxy is called?<br>
What I want to do is:<br>
Do end_media_session for bye or cancel if & only if use_media_proxy has been called during invite or reply route.<br>
<br>
Is it possible?<br>
</blockquote></div>
for BYEs: when you process the INVITE you can add a special parameter to record-route header that you will check in the route header of your BYE.<br>
<br>
For CANCEL, you can destroy the session in failure route and you check for nat flag or you arm that failure route for natted calls.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
<br>
If it is then please let me know how to implement it?<br>
<br>
Thanks in advance<br>
<br>
--<br>
Krunal Patel<br>
<br></div>
------------------------------------------------------------------------<div class="Ih2E3d"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</div></blockquote><font color="#888888">
<br>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<br>
</font></blockquote></div><br>