<div dir="ltr">HI Daniel, <div><br></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre">modparam("dialog", "dlg_flag", 4)
modparam("dialog", "send_bye", 1)
modparam("dialog", "timeout_noreset", 1)</span></font><br></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre"><br></span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre">So regular bye's by useragent i can succesfully relay to this <sip:6gjlmali@ec2c66jsa0ei.invalid;transport=ws> </span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre">style of uri by using this snippet below</span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre"><br></span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre"><div># Handle requests within SIP dialogs</div><div>route[WITHINDLG] {</div><div>Â if(is_method("BYE")) {</div><div>Â Â xlog("DEBUG: Received BYE");</div><div>Â Â route(NATDETECT);</div><div>Â Â loose_route();</div><div>Â Â dlg_manage();</div><div>Â Â t_check_trans();</div><div>Â Â handle_ruri_alias();</div><div>Â Â rtpengine_delete();</div><div>Â Â route(RELAY);</div><div>Â Â exit;</div><div>Â }</div></span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre">...</span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre"><br></span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre">But the byes that are sent out by dlg_set_timeout("$var(timer)") gives out error cannot resolve</span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre">the random.uri and I don't know how to fix the bye before it get sent out.</span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre"><br></span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre">Thanks</span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre">Andrew</span></font></div><div><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre"><br></span></font></div><div><font color="#333333" face="consolas, liberation mono, menlo, courier, monospace"><span style="font-size:12px;white-space:pre"><br></span></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 27, 2017 at 12:15 AM, 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>isn't the dialog module setting the right value there? What
function are you using to update the contact?</p>
<p>Cheers,<br>
Daniel<br>
</p><div><div class="h5">
<br>
<div class="m_-5982477420379773172moz-cite-prefix">On 27/01/2017 06:01, Andrew Tan wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div>Hello, </div>
<div><br>
</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><br>
</div>
<div>I know there is the edge proxy outbound module but
wondering if I can do it without.</div>
<div><br>
</div>
<div>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><br>
</div>
<div>Thanks in advance!</div>
<div>Andrew</div>
</div>
</div>
<br>
</div>
<br>
<fieldset class="m_-5982477420379773172mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="m_-5982477420379773172moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a class="m_-5982477420379773172moz-txt-link-freetext" 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="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre class="m_-5982477420379773172moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-5982477420379773172moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-5982477420379773172moz-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_-5982477420379773172moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_-5982477420379773172moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</font></span></div>
<br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>