<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <div class="moz-cite-prefix">On 11/20/13 11:50 AM, Guillaume Bour
      wrote:<br>
    </div>
    <blockquote cite="mid:528C93DD.3090509@gmail.com" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hi All<br>
      <br>
      We wan't to prevent our users to make more than one call at time,
      so we choose to disconnect the previous call.<br>
      When the previous call is established, we use dlg_bye(), and its
      ok.<br>
      But when it is in early state, we use t_cancel_callid() to cancel
      its INVITE transaction.<br>
      <br>
      We face 2 issues:<br>
          1) we use local-request event route to account calls on
      timeout. Sometimes this route is called for the cancelled call
      (after default timeout of 1 hour)<br>
    </blockquote>
    <br>
    what is in the local-request in this case? Is it a BYE?<br>
    <br>
    <blockquote cite="mid:528C93DD.3090509@gmail.com" type="cite">    
      2) t_cancel_callid() cancel previous call, but also <u>make
        current dialog disappear</u>: call is still ongoing and we can
      answer and talk to each other, but the dialog does not appear in
      'kamctl stats dialog' and 'kamctl mi dlg_list' commands<br>
      <br>
      Is there a known limitation, or do we misuse t_cancel_callid() ?<br>
    </blockquote>
    Can you send the log with debug=3 in kamailio.cfg? It will help to
    see what happens. Otherwise, if the call id is different for current
    dialog, it should not happen. The ngrep output in this situation
    (for both first and second invite) will help.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Trainings - Berlin, Nov 25-28
  - more details about Kamailio trainings at <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> -
</pre>
  </body>
</html>