Re: [SR-Users] dlg_set_timeout bye to websockets client
Correct I just have to make sure that set_contact_alias is used in the initial dialog. I was doing the the NAT fixes after the initial dialog. On Tue, Feb 7, 2017 at 11:23 PM, Daniel-Constantin Mierla wrote: > Hello, > > ok, so it was the missing of set_contact_alias(), right? > > Cheers, > Daniel > > On 29/01/2017 19:21, Switch168 wrote: > > Hi Daniel, > > > For anyone else who might run into this issue I found > https://github.com/kamailio/kamailio/issues/85 to be related to mine. And > its a good a starting point. > > Cheers > Andrew > > > > > On Fri, Jan 27, 2017 at 10:47 AM Switch168 wrote: > >> 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 >> >> 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 < >> mico...@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-us...@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@lists.sip-router.org >> http://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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] dlg_set_timeout bye to websockets client
Hi Daniel, For anyone else who might run into this issue I found https://github.com/kamailio/kamailio/issues/85 to be related to mine. And its a good a starting point. Cheers Andrew On Fri, Jan 27, 2017 at 10:47 AM Switch168 wrote: > 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 > > 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 < > mico...@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-us...@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@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] dlg_set_timeout bye to websockets client
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 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 < mico...@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-us...@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@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] dlg_set_timeout bye to websockets client
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 list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users