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?
If it is then please let me know how to implement it?
Thanks in advance
-- Krunal Patel
El Jueves, 18 de Diciembre de 2008 08:54, Krunal Patel escribió:
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?
Yes
If it is then please let me know how to implement it?
You have different options:
- Using a flag or branch_flag - Using an AVP - Using a Var ...
I suggest you to read the docs about the nat modules, you will find examples about how to do it.
Regards -- Raúl Alexis Betancor Santana
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
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
IF you do not need full control you can use the engage_media_proxy() function. This function monitors the dialog and handles reINVITEs and BYEs and CANCELs automatically.
klaus
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?
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