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 <team@switch168.com> 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 <sip:6gjlmali@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@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 list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.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 Mierla
www.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