<div dir="ltr">Correct I just have to make sure that set_contact_alias is used in the initial dialog.<div>I was doing the the NAT fixes after the initial dialog.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 7, 2017 at 11:23 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>ok, so it was the missing of set_contact_alias(), right?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p><div><div class="h5">
    <br>
    <div class="m_2237508666891861954moz-cite-prefix">On 29/01/2017 19:21, Switch168 wrote:<br>
    </div>
    <blockquote type="cite">
      <div>Hi Daniel,</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>For anyone else who might run into this issue I found  <a href="https://github.com/kamailio/kamailio/issues/85" target="_blank">https://github.com/kamailio/<wbr>kamailio/issues/85</a>
        to be related to mine. And its a good a starting point.</div>
      <div><br>
      </div>
      <div>Cheers</div>
      <div>Andrew</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
        <div class="gmail_quote">
          <div>On Fri, Jan 27, 2017 at 10:47 AM Switch168 <<a href="mailto:team@switch168.com" target="_blank">team@switch168.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div class="m_2237508666891861954gmail_msg">HI Daniel, 
              <div class="m_2237508666891861954gmail_msg"><br class="m_2237508666891861954gmail_msg">
              </div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">modparam("dialog", "dlg_flag", 4)
modparam("dialog", "send_bye", 1)
modparam("dialog", "timeout_noreset", 1)</span></font><br class="m_2237508666891861954gmail_msg">
              </div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">So regular bye's by useragent i can succesfully relay to this <a class="m_2237508666891861954moz-txt-link-rfc2396E"><sip:6gjlmali@ec2c66jsa0ei.<wbr>invalid;transport=ws></a> </span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">style of uri by using this snippet below</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg"><div class="m_2237508666891861954gmail_msg"># Handle requests within SIP dialogs</div><div class="m_2237508666891861954gmail_msg">route[WITHINDLG] {</div><div class="m_2237508666891861954gmail_msg">  if(is_method("BYE")) {</div><div class="m_2237508666891861954gmail_msg">    xlog("DEBUG: Received BYE");</div><div class="m_2237508666891861954gmail_msg">    route(NATDETECT);</div><div class="m_2237508666891861954gmail_msg">    loose_route();</div><div class="m_2237508666891861954gmail_msg">    dlg_manage();</div><div class="m_2237508666891861954gmail_msg">    t_check_trans();</div><div class="m_2237508666891861954gmail_msg">    handle_ruri_alias();</div><div class="m_2237508666891861954gmail_msg">    rtpengine_delete();</div><div class="m_2237508666891861954gmail_msg">    route(RELAY);</div><div class="m_2237508666891861954gmail_msg">    exit;</div><div class="m_2237508666891861954gmail_msg">  }</div></span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">...</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">But the byes that are sent out by dlg_set_timeout("$var(timer)") gives out error cannot resolve</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">the random.uri and I don't know how to fix the bye before it get sent out.</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">Thanks</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">Andrew</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></div>
              <div class="m_2237508666891861954gmail_msg"><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></div>
              <div class="m_2237508666891861954gmail_msg"><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></div>
              <div class="m_2237508666891861954gmail_msg"><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></div>
              <div class="m_2237508666891861954gmail_msg"><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></font></div>
              <div class="m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#333333" face="consolas, liberation mono,
                  menlo, courier, monospace"><span style="font-size:12px;white-space:pre-wrap" class="m_2237508666891861954gmail_msg">
</span></font></div>
            </div>
            <div class="gmail_extra m_2237508666891861954gmail_msg"><br class="m_2237508666891861954gmail_msg">
              <div class="gmail_quote m_2237508666891861954gmail_msg">On Fri, Jan 27, 2017 at
                12:15 AM, Daniel-Constantin Mierla <span class="m_2237508666891861954gmail_msg"><<a href="mailto:miconda@gmail.com" class="m_2237508666891861954gmail_msg" target="_blank">miconda@gmail.com</a>></span>
                wrote:<br class="m_2237508666891861954gmail_msg">
                <blockquote class="gmail_quote m_2237508666891861954gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div bgcolor="#FFFFFF" text="#000000" class="m_2237508666891861954gmail_msg">
                    <p class="m_2237508666891861954gmail_msg">Hello,</p>
                    <p class="m_2237508666891861954gmail_msg">isn't the dialog module setting
                      the right value there? What function are you using
                      to update the contact?</p>
                    <p class="m_2237508666891861954gmail_msg">Cheers,<br class="m_2237508666891861954gmail_msg">
                      Daniel<br class="m_2237508666891861954gmail_msg">
                    </p>
                    <div class="m_2237508666891861954gmail_msg">
                      <div class="m_2237508666891861954m_-4821787933263465933h5 m_2237508666891861954gmail_msg"> <br class="m_2237508666891861954gmail_msg">
                        <div class="m_2237508666891861954m_-4821787933263465933m_-5982477420379773172moz-cite-prefix m_2237508666891861954gmail_msg">On 27/01/2017 06:01, Andrew Tan
                          wrote:<br class="m_2237508666891861954gmail_msg">
                        </div>
                      </div>
                    </div>
                    <blockquote type="cite" class="m_2237508666891861954gmail_msg">
                      <div class="m_2237508666891861954gmail_msg">
                        <div class="m_2237508666891861954m_-4821787933263465933h5 m_2237508666891861954gmail_msg">
                          <div class="m_2237508666891861954gmail_msg">
                            <div class="gmail_quote m_2237508666891861954gmail_msg">
                              <div class="m_2237508666891861954gmail_msg">
                                <div class="m_2237508666891861954gmail_msg">Hello, </div>
                                <div class="m_2237508666891861954gmail_msg"><br class="m_2237508666891861954gmail_msg">
                                </div>
                                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. 
                                <div class="m_2237508666891861954gmail_msg"><br class="m_2237508666891861954gmail_msg">
                                </div>
                                <div class="m_2237508666891861954gmail_msg">I know there is
                                  the edge proxy outbound module but
                                  wondering if I can do it without.</div>
                                <div class="m_2237508666891861954gmail_msg"><br class="m_2237508666891861954gmail_msg">
                                </div>
                                <div class="m_2237508666891861954gmail_msg">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.</div>
                                <div class="m_2237508666891861954gmail_msg"><br class="m_2237508666891861954gmail_msg">
                                </div>
                                <div class="m_2237508666891861954gmail_msg">Thanks in
                                  advance!</div>
                                <div class="m_2237508666891861954gmail_msg">Andrew</div>
                              </div>
                            </div>
                            <br class="m_2237508666891861954gmail_msg">
                          </div>
                          <br class="m_2237508666891861954gmail_msg">
                          <fieldset class="m_2237508666891861954m_-4821787933263465933m_-5982477420379773172mimeAttachmentHeader m_2237508666891861954gmail_msg"></fieldset>
                          <br class="m_2237508666891861954gmail_msg">
                        </div>
                      </div>
                      <pre class="m_2237508666891861954gmail_msg">______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="m_2237508666891861954m_-4821787933263465933m_-5982477420379773172moz-txt-link-abbreviated m_2237508666891861954gmail_msg" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a class="m_2237508666891861954m_-4821787933263465933m_-5982477420379773172moz-txt-link-freetext m_2237508666891861954gmail_msg" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="m_2237508666891861954m_-4821787933263465933HOEnZb m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#888888">
</font></span></pre>
                      <span class="m_2237508666891861954m_-4821787933263465933HOEnZb m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#888888"> </font></span></blockquote>
                    <span class="m_2237508666891861954m_-4821787933263465933HOEnZb m_2237508666891861954gmail_msg"><font class="m_2237508666891861954gmail_msg" color="#888888"> <br class="m_2237508666891861954gmail_msg">
                        <pre class="m_2237508666891861954m_-4821787933263465933m_-5982477420379773172moz-signature m_2237508666891861954gmail_msg" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_2237508666891861954m_-4821787933263465933m_-5982477420379773172moz-txt-link-abbreviated m_2237508666891861954gmail_msg" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_2237508666891861954m_-4821787933263465933m_-5982477420379773172moz-txt-link-abbreviated m_2237508666891861954gmail_msg" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="m_2237508666891861954m_-4821787933263465933m_-5982477420379773172moz-txt-link-abbreviated m_2237508666891861954gmail_msg" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_2237508666891861954m_-4821787933263465933m_-5982477420379773172moz-txt-link-abbreviated m_2237508666891861954gmail_msg" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
                      </font></span></div>
                  <br class="m_2237508666891861954gmail_msg">
                  ______________________________<wbr>_________________<br class="m_2237508666891861954gmail_msg">
                  SIP Express Router (SER) and Kamailio (OpenSER) -
                  sr-users mailing list<br class="m_2237508666891861954gmail_msg">
                  <a href="mailto:sr-users@lists.sip-router.org" class="m_2237508666891861954gmail_msg" target="_blank">sr-users@lists.sip-router.org</a><br class="m_2237508666891861954gmail_msg">
                  <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" class="m_2237508666891861954gmail_msg" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br class="m_2237508666891861954gmail_msg">
                  <br class="m_2237508666891861954gmail_msg">
                </blockquote>
              </div>
              <br class="m_2237508666891861954gmail_msg">
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="m_2237508666891861954moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_2237508666891861954moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_2237508666891861954moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="m_2237508666891861954moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_2237508666891861954moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </div></div></div>

</blockquote></div><br></div>