[SR-Users] dlg_set_timeout bye to websockets client
Switch168
team at switch168.com
Fri Jan 27 19:47:48 CET 2017
HI Daniel,
modparam("dialog", "dlg_flag", 4) modparam("dialog", "send_bye", 1)
modparam("dialog", "timeout_noreset", 1)
So regular bye's by useragent i can succesfully relay to this
<sip:6gjlmali at ec2c66jsa0ei.invalid;transport=ws>
style of uri by using this snippet below
# Handle requests within SIP dialogs
route[WITHINDLG] {
if(is_method("BYE")) {
xlog("DEBUG: Received BYE");
route(NATDETECT);
loose_route();
dlg_manage();
t_check_trans();
handle_ruri_alias();
rtpengine_delete();
route(RELAY);
exit;
}
...
But the byes that are sent out by dlg_set_timeout("$var(timer)") gives out
error cannot resolve
the random.uri and I don't know how to fix the bye before it get sent out.
Thanks
Andrew
On Fri, Jan 27, 2017 at 12:15 AM, Daniel-Constantin Mierla <
miconda at gmail.com> wrote:
> Hello,
>
> isn't the dialog module setting the right value there? What function are
> you using to update the contact?
>
> Cheers,
> Daniel
>
> On 27/01/2017 06:01, Andrew Tan wrote:
>
> Hello,
>
> Just wondering if it's possible to intercept the bye message that
> dlg_set_timeout sends out to do some nat_helper function to fix it so the
> bye can be sent to random.invalid uris.
>
> I know there is the edge proxy outbound module but wondering if I can do
> it without.
>
> Regular bye between 2 clients i was able intercept and fix with nat helper
> but I dont know how to fix the byes that is sent out from dlg_set_timeout
> function.
>
> Thanks in advance!
> Andrew
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170127/256cb1c8/attachment.html>
More information about the sr-users
mailing list