<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span>Hello</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Regarding the stuck dialog in state 5 , we had wait_ack = 1 ; we've put wait_ack = 0 , and the cancelled dialog does not show in</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">the output of `<span
 style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;">kamctl mi dlg_list</span><span style="background-color: transparent;">` anymore.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;">Regards,</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="background-color:
 transparent;">Dragos</span></div><div class="yahoo_quoted" style="display: block;"> <br> <br> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, November 26, 2013 9:32 AM, Guillaume Bour <libon.voiceteam@gmail.com> wrote:<br> </font> </div>  <div class="y_msg_container"><div id="yiv5862867661"><div>
    <div class="yiv5862867661moz-cite-prefix">On 25/11/2013 21:35, Daniel-Constantin
      Mierla wrote:<br clear="none">
    </div>
    <blockquote type="cite">
      </blockquote></div><div>
      Hello Guillaume,<br clear="none">
      <br clear="none">
      thanks, I will backport. Is this solving the issue reported in
      this email thread, or the one related to the drop of another early
      dialog is still there?<br clear="none">
    
    Hi,<br clear="none">
    <br clear="none">
    Yes, the correct early dialog is cancelled, and the local-request
    event route is not executed anymore for this dialog.<br clear="none">
    But it remains indefinitly listed in output of command "kamctl mi
    dlg_list", so I suppose the dialog is not really destroyed<br clear="none">
    <br clear="none">
    $> /opt/kamailio/sbin/kamctl mi dlg_list<br clear="none">
    dialog::  hash=1149:11437<br clear="none">
            state:: 5<br clear="none">
            ref_count:: 1<br clear="none">
            timestart:: 0<br clear="none">
            timeout:: 0<br clear="none">
            callid:: q69aDDCPso8rh-0NqPxv39VCt8XPgwrN<br clear="none">
            from_uri:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sip:15909901@staging.voip" target="_blank" href="mailto:sip:15909901@staging.voip">sip:15909901@staging.voip</a><br clear="none">
            from_tag:: V7wg6INO0Sp3o0Od1AIzPyUXbUuRLOFy<br clear="none">
            caller_contact::
    <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sip:62389754-sbcqi87bli6bc@10.0.1.106:5060;transport=udp" target="_blank" href="mailto:sip:62389754-sbcqi87bli6bc@10.0.1.106:5060;transport=udp">sip:62389754-sbcqi87bli6bc@10.0.1.106:5060;transport=udp</a><br clear="none">
            caller_cseq:: 16068<br clear="none">
            caller_route_set:: <br clear="none">
            caller_bind_addr:: udp:10.0.1.10:5060<br clear="none">
            callee_bind_addr:: <br clear="none">
            to_uri:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sip:+33600000011@staging.voip" target="_blank" href="mailto:sip:+33600000011@staging.voip">sip:+33600000011@staging.voip</a><br clear="none">
            to_tag:: <br clear="none">
            callee_contact:: <br clear="none">
            callee_cseq:: <br clear="none">
            callee_route_set::<br clear="none">
    <br clear="none">
    <br clear="none">
    Regards,<div class="yiv5862867661yqt3466984753" id="yiv5862867661yqtfd48599"><br clear="none">
    Guillaume<br clear="none">
    <br clear="none">
    <blockquote type="cite"> <br clear="none">
      Cheers,<br clear="none">
      Daniel<br clear="none">
      <br clear="none">
      <div class="yiv5862867661moz-cite-prefix">On 11/25/13 4:47 PM, Guillaume Bour
        wrote:<br clear="none">
      </div>
      <blockquote type="cite">
        </blockquote></blockquote></div></div><div class="yiv5862867661yqt3466984753" id="yiv5862867661yqtfd35626"><div><div class="yiv5862867661moz-cite-prefix">On 24/11/2013 16:35,
          Daniel-Constantin Mierla wrote:<br clear="none">
        </div>
        <blockquote type="cite">
          </blockquote></div><div>
          Hello Guillaume,<br clear="none">
          <br clear="none">
          I pushed two commits on master branch:<br clear="none">
          <br clear="none">
          - <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=777dd5e28ff6b4fcc3b1c44e841eb415c974075f">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=777dd5e28ff6b4fcc3b1c44e841eb415c974075f</a><br clear="none">
          - <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=60372d613544af1f8f06122eb77fa2a9636a6c3a">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=60372d613544af1f8f06122eb77fa2a9636a6c3a</a><br clear="none">
          <br clear="none">
          The changes restore the previous values for T and T_branch,
          should be safer for the case when t_cancel_callid() is used in
          the context of another transaction.<br clear="none">
          <br clear="none">
          The patches are for master branch, but should apply easily to
          4.0 branch. If you confirm they are working fine, then I will
          backport to git branch 4.0 as well.<br clear="none">
          <br clear="none">
        
        <br clear="none">
        Hi Daniel,<br clear="none">
        <br clear="none">
        I have tested it on 4.0 branch, and its working fine<br clear="none">
        <br clear="none">
        Regards,<br clear="none">
        Guillaume<br clear="none">
        <br clear="none">
        <blockquote type="cite">
          Cheers,<br clear="none">
          Daniel<br clear="none">
          <br clear="none">
          <div class="yiv5862867661moz-cite-prefix">On 11/21/13 5:19 PM, Guillaume
            Bour wrote:<br clear="none">
          </div>
          <blockquote type="cite">
            </blockquote></blockquote></div><div><div class="yiv5862867661moz-cite-prefix"><br clear="none">
              Hi Daniel<br clear="none">
              <br clear="none">
              No, replies are not dropped.<br clear="none">
              <br clear="none">
              I looked into source code, particularly
              tmx_mod.c::t_cancel_callid() function.<br clear="none">
              It alter the global pointer T (pointing to the transaction
              currently processed), but do not restore original value at
              the end:<br clear="none">
                - at the beginning of t_cancel_callid(), T is NULL<br clear="none">
                - then t_lookup_callid() make it point to the
              transaction we want to cancel<br clear="none">
                - and the pointer is not cleanup before exiting
              t_cancel_callid<br clear="none">
              <br clear="none">
              Here is a patch that fix this issue (it may not be the
              correct way to do it)<br clear="none">
              <br clear="none">
              <br clear="none">
              Regards,<br clear="none">
              Guillaume<br clear="none">
              <br clear="none">
              On 20/11/2013 22:57, Daniel-Constantin Mierla wrote:<br clear="none">
            </div>
            <blockquote type="cite">
              </blockquote></div><div>
              Hello,<br clear="none">
              <br clear="none">
              are you dropping replies? I don't see the 'SIP/2.0 487
              Request Terminated' being sent to caller, it looks ok and
              has two Via headers.<br clear="none">
              <br clear="none">
              Cheers,<br clear="none">
              Daniel<br clear="none">
              <br clear="none">
              <div class="yiv5862867661moz-cite-prefix">On 11/20/13 4:06 PM,
                Guillaume Bour wrote:<br clear="none">
              </div>
              <blockquote type="cite">
                </blockquote></div><div><div class="yiv5862867661moz-cite-prefix">On 20/11/2013 12:01,
                  Daniel-Constantin Mierla wrote:<br clear="none">
                </div>
                <blockquote type="cite">
                  </blockquote></div><div>
                  Hello,<br clear="none">
                  <br clear="none">
                  <div class="yiv5862867661moz-cite-prefix">On 11/20/13 11:50 AM,
                    Guillaume Bour wrote:<br clear="none">
                  </div>
                  <blockquote type="cite">
                    </blockquote></div><div>
                    Hi All<br clear="none">
                    <br clear="none">
                    We wan't to prevent our users to make more than one
                    call at time, so we choose to disconnect the
                    previous call.<br clear="none">
                    When the previous call is established, we use
                    dlg_bye(), and its ok.<br clear="none">
                    But when it is in early state, we use
                    t_cancel_callid() to cancel its INVITE transaction.<br clear="none">
                    <br clear="none">
                    We face 2 issues:<br clear="none">
                        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 clear="none">
                  
                  <br clear="none">
                  what is in the local-request in this case? Is it a
                  BYE?<br clear="none">
                  <br clear="none">
                  <blockquote 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 clear="none">
                    <br clear="none">
                    Is there a known limitation, or do we misuse
                    t_cancel_callid() ?<br clear="none">
                  </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 clear="none">
                  <br clear="none">
                  Cheers,<br clear="none">
                  Daniel<br clear="none">
                  <br clear="none">
                
                <br clear="none">
                <br clear="none">
                Hi Daniel,<br clear="none">
                <br clear="none">
                local-request is triggered by a BYE<br clear="none">
                I have attached sample log and trace<br clear="none">
                <br clear="none">
                There is some kind of dialogs mixing. Here is the 1st
                call dialog as reported by "kamctl mi dlg_list" <u>before
                  and after</u> the 2d call is answered:<br clear="none">
                <br clear="none">
                # kamctl mi dlg_list<br clear="none">
                dialog::  hash=2790:3231<br clear="none">
                        state:: 2<br clear="none">
                        ref_count:: 1<br clear="none">
                        timestart:: 0<br clear="none">
                        timeout:: 0<br clear="none">
                        callid:: GoXhk8GfkIEEqFyFNcySEjSOOpVKg4Uq<br clear="none">
                        from_uri:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sip:15909901@staging.voip" target="_blank" href="mailto:sip:15909901@staging.voip">sip:15909901@staging.voip</a><br clear="none">
                        from_tag:: swYh88AkicGbSHpK.D1z7uo3EX9Q-.AZ<br clear="none">
                        caller_contact:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sip:37984520-gch2kindtioq8@10.0.1.10:5060;transport=udp" target="_blank" href="mailto:sip:37984520-gch2kindtioq8@10.0.1.10:5060;transport=udp">sip:37984520-gch2kindtioq8@10.0.1.10:5060;transport=udp</a><br clear="none">
                        caller_cseq:: 24899<br clear="none">
                        caller_route_set::<br clear="none">
                        caller_bind_addr:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" href="">udp:10.0.1.10:5060</a><br clear="none">
                        callee_bind_addr::<br clear="none">
                        to_uri:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sip:+3360000011@staging.voip" target="_blank" href="mailto:sip:+3360000011@staging.voip">sip:+3360000011@staging.voip</a><br clear="none">
                        to_tag::<br clear="none">
                        callee_contact::<br clear="none">
                        callee_cseq::<br clear="none">
                        callee_route_set::<br clear="none">
                <br clear="none">
                # kamctl mi dlg_list<br clear="none">
                dialog::  hash=2790:3231<br clear="none">
                        state:: 3<br clear="none">
                        ref_count:: 2<br clear="none">
                        timestart:: 1384952191<br clear="none">
                        timeout:: 20242152<br clear="none">
                        callid:: GoXhk8GfkIEEqFyFNcySEjSOOpVKg4Uq<br clear="none">
                        from_uri:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sip:15909901@staging.voip" target="_blank" href="mailto:sip:15909901@staging.voip">sip:15909901@staging.voip</a><br clear="none">
                        from_tag:: swYh88AkicGbSHpK.D1z7uo3EX9Q-.AZ<br clear="none">
                        caller_contact:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sip:37984520-gch2kindtioq8@10.0.1.20:5060;transport=udp" target="_blank" href="mailto:sip:37984520-gch2kindtioq8@10.0.1.20:5060;transport=udp">sip:37984520-gch2kindtioq8@10.0.1.20:5060;transport=udp</a><br clear="none">
                        caller_cseq:: 24899<br clear="none">
                        caller_route_set::<br clear="none">
                        caller_bind_addr:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" href="">udp:10.0.1.10:5060</a><br clear="none">
                        callee_bind_addr:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" href="">udp:10.0.1.10:5060</a><br clear="none">
                        to_uri:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sip:+3360000011@staging.voip" target="_blank" href="mailto:sip:+3360000011@staging.voip">sip:+3360000011@staging.voip</a><br clear="none">
                        to_tag:: as6c8b935a<br clear="none">
                        callee_contact:: <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sip:+3360000022@10.0.1.11:5060" target="_blank" href="mailto:sip:+3360000022@10.0.1.11:5060">sip:+3360000022@10.0.1.11:5060</a><br clear="none">
                        callee_cseq::<br clear="none">
                        callee_route_set::<br clear="none">
                <br clear="none">
                <br clear="none">
                <br clear="none">
                <br clear="none">
                <fieldset class="yiv5862867661mimeAttachmentHeader"></fieldset>
                <br clear="none">
                <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
              
              <br clear="none">
              <pre class="yiv5862867661moz-signature">-- 
Daniel-Constantin Mierla - <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://www.asipto.com/">http://www.asipto.com</a>
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" 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 rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://www.asipto.com/">http://www.asipto.com</a> -
</pre>
              <br clear="none">
              <fieldset class="yiv5862867661mimeAttachmentHeader"></fieldset>
              <br clear="none">
              <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
            
            <br clear="none">
            <br clear="none">
            <fieldset class="yiv5862867661mimeAttachmentHeader"></fieldset>
            <br clear="none">
            <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
          
          <br clear="none">
          <pre class="yiv5862867661moz-signature">-- 
Daniel-Constantin Mierla - <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://www.asipto.com/">http://www.asipto.com</a>
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
          <br clear="none">
          <fieldset class="yiv5862867661mimeAttachmentHeader"></fieldset>
          <br clear="none">
          <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
        
        <br clear="none">
        <br clear="none">
        <fieldset class="yiv5862867661mimeAttachmentHeader"></fieldset>
        <br clear="none">
        <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      
      <br clear="none">
      <pre class="yiv5862867661moz-signature">-- 
Daniel-Constantin Mierla - <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://www.asipto.com/">http://www.asipto.com</a>
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
      <br clear="none">
      <fieldset class="yiv5862867661mimeAttachmentHeader"></fieldset>
      <br clear="none">
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-abbreviated" ymailto="mailto:sr-users@lists.sip-router.org" target="_blank" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a rel="nofollow" shape="rect" class="yiv5862867661moz-txt-link-freetext" target="_blank" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    
    <br clear="none">
  </div></div></div><br><div class="yqt3466984753" id="yqtfd11145">_______________________________________________<br clear="none">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br clear="none"><a shape="rect" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br clear="none"></div><br><br></div>  </div> </div>  </div> </div></body></html>