Hi,

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.

++ I tested this.
I am adding nat=yes in record-route when caller is detected behind NAT.
& When processing BYE , I checked whether nat=yes does exist into Record header or not.
If it does then & then do end_media_session.

But if caller is having public IP then this is not working.

Thanks,
Krunal Patel


On Thu, Dec 18, 2008 at 2:50 PM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,


On 12/18/08 10:54, Krunal Patel wrote:
Hi,

Does anybody know how to detect whether use_media_proxy is called?
What I want to do is:
Do end_media_session for bye or cancel if & only if use_media_proxy has been called during invite or reply route.

Is it possible?
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.

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.

Cheers,
Daniel


If it is then please let me know how to implement it?

Thanks in advance

--
Krunal Patel

------------------------------------------------------------------------


_______________________________________________
Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
 

--
Daniel-Constantin Mierla
http://www.asipto.com