<div dir="ltr"><span style="font-size:12.8px">opposite site ie </span>caller or callee ?<div><br></div><div>here the extract of the dialog documentation:</div><div><div class="gmail-titlepage" style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:15px"><h3 class="gmail-title" style="font-style:italic;border:1px solid rgb(192,192,192);background-color:rgb(242,242,242);padding-left:5px;font-size:16px"><code class="gmail-function">dlg_set_property(attr)</code></h3></div><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">Set a dialog property - an attribute that enable/disable various behaviours (e.g., sending keep alive requests).</p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">Meaning of the parameters is as follows:</p><div class="gmail-itemizedlist" style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:15px"><ul class="gmail-itemizedlist" type="disc"><li class="gmail-listitem"><p style="font-size:12px;text-align:justify"><span class="emphasis"><em>attr</em></span> - name of property. It can be:</p><div class="gmail-itemizedlist"><ul class="gmail-itemizedlist" type="circle"><li class="gmail-listitem">'ka-src' - send keep alive OPTION requests to caller</li><li class="gmail-listitem">'ka-dst' - send keep alive OPTION requests to callee</li><li class="gmail-listitem">'timeout-noreset' - don't reset timeout on in-dialog messages reception</li></ul></div><p style="font-size:12px;text-align:justify"></p></li></ul></div><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">If keep alive is enabled for a dialog, the module will send SIP OPTIONS requests with CSeq lower or equal than last request within dialog, with the scope of detecting if the destination is still in the call. If the keep alive request results in a local timeout or '481 Call Leg/Transaction Does Not Exist', then the dialog is ended from the server.</p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">If 'timeout-noreset' is set, dialog timeout won't be reset upon reception of in-dialog messages (default behavior).</p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">This function can be used from ANY_ROUTE.</p></div><div><br><div>Regards</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-15 9:41 GMT+02:00 Nguyen Tran Nhan <span dir="ltr"><<a href="mailto:nguyentran@nccsoft.vn" target="_blank">nguyentran@nccsoft.vn</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank Abdoul,<div>I use your suggest config and kamailio start now but there is no message when opposite site lost connection.</div><div><br></div><div>Thanks,</div><div>Nhan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 15, 2017 at 2:07 PM, Abdoul Osséni <span dir="ltr"><<a href="mailto:abdoul.osseni@gmail.com" target="_blank">abdoul.osseni@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 dir="ltr">Hi,<div><br></div><div>I think, you can use the following config.</div><div><br></div><div><div>.....</div><div>.....</div><div>.....</div></div><div>#!define FLT_DLG 9<br></div><div><div>.....</div><div>.....</div><div>.....</div></div><div><div>loadmodule "dialog.so"</div></div><div>.....</div><div>.....</div><div>.....</div><div><div># ----- dialog params -----</div><div>modparam("dialog", "enable_stats", 1)</div><div>modparam("dialog", "dlg_flag", FLT_DLG)</div><div>modparam("dialog", "send_bye", 1)</div><div>modparam("dialog", "ka_timer", 5)</div><div>modparam("dialog", "ka_interval", 30)</div><div><br></div><div><div>.....</div><div>.....</div><div>.....</div></div><div>route[RELAY] {</div><div><div>.....</div><div>.....</div><div>.....</div></div><div>        if (is_method("INVITE")) {</div><div>                setflag(FLT_DLG);</div><div>                dlg_set_property("ka-src");</div><div>                dlg_set_property("timeout-nore<wbr>set");</div><div>        }</div><div><br></div><div>        dlg_manage();<br><div>.....</div><div>.....</div><div>.....</div></div><div><br></div><div>Regards</div><div><br></div><div>Abdoul.</div><div><br></div></div><div><br></div><div><br></div></div><div class="gmail_extra"><div><div class="m_-8304002561856594669h5"><br><div class="gmail_quote">2017-06-15 9:00 GMT+02:00 Nguyen Tran Nhan <span dir="ltr"><<a href="mailto:nguyentran@nccsoft.vn" target="_blank">nguyentran@nccsoft.vn</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, I am able to install dialog module. Just add dlg_flag config for starting kamailio. But I think this flag is deprecated. It is using dlg_manage() now?<div><br></div><div>Thanks,</div><div>Nhan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 14, 2017 at 9:29 AM, Nguyen Tran Nhan <span dir="ltr"><<a href="mailto:nguyentran@nccsoft.vn" target="_blank">nguyentran@nccsoft.vn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">About installation dialog module, I add load dialog.so and it require to load outbound.so. After that it need to enable stcp. I think there is no stcp.so module? enable_stcp=1 does not work for me.<div><br></div><div>Thanks,</div><div>Nhan </div></div><div class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137HOEnZb"><div class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 13, 2017 at 8:59 AM, Nguyen Tran Nhan <span dir="ltr"><<a href="mailto:nguyentran@nccsoft.vn" target="_blank">nguyentran@nccsoft.vn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Daniel,<div>I am using rtpproxy, so I think the patches is good for me. Have you got any information about patch for rtpproxy?</div><div><br></div><div>Thanks,</div><div>Nhàn</div></div><div class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601HOEnZb"><div class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 12, 2017 at 10:19 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>two options coming in my mind:</p>
    <p>1) use dialog module and enable keepalive within the dialog<br>
    </p>
    2) if you use an rtp relay (for nat traversal, etc), then thee were
    some patches that rtpproxy is sending an xmlrpc command to kamailio,
    which via dialog module can send a bye. Not sure what is the current
    status with that patch or if rtpengine has anything similar.<br>
    <br>
    Cheers,<br>
    Daniel<div><div class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509h5"><br>
    <br>
    <br>
    <div class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509m_-6107528213879200729moz-cite-prefix">On 10.06.17 06:10, Nguyen Tran Nhan
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509h5">
      <div dir="ltr">Hi all,
        <div>I am working in basic call. I got common cause that
          opposite side (callee) lost connection and caller still
          hangging in the call. Is there any message to server to caller
          in this case?</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Nhan</div>
      </div>
      <br>
      <fieldset class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509m_-6107528213879200729mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509m_-6107528213879200729moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509m_-6107528213879200729moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><span class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509HOEnZb"><font color="#888888">
</font></span></pre><span class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509HOEnZb"><font color="#888888">
    <br>
    <pre class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509m_-6107528213879200729moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509m_-6107528213879200729moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509m_-6107528213879200729moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509m_-6107528213879200729moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - <a class="m_-8304002561856594669m_-1459962249039677932m_-8427383470522309137m_2698986538343692601m_-844780187012972509m_-6107528213879200729moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br></font></span></div></div><span class="HOEnZb"><font color="#888888"><div class="m_-8304002561856594669m_-1459962249039677932gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8px">Abdoul OSSENI</span><br></div><div>Ingénieur Réseaux et systèmes chez THALES</div><div>Co-Fondateur de ON SERVICES</div><div>Tél : +33 601 135 167</div></div></div></div></div>
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<br></font></span></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8px">Abdoul OSSENI</span><br></div><div>Ingénieur Réseaux et systèmes chez THALES</div><div>Co-Fondateur de ON SERVICES</div><div>Tél : +33 601 135 167</div></div></div></div></div>
</div>