<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 03 Jan 2017, at 09:20, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" class="">miconda@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class=""><p class="">Hello,<br class="">
    </p>
    this is the behaviour required by rfc, to send cancel only after
    receiving a provisional reply 1xx.<br class=""></div></div></blockquote>Which is the only way - before that point we don’t know if any SIP-capable software has gotten the INVITE and</div><div>the INVITE will be retransmitted still. There’s simply no point in starting to send any CANCEL requests at that time.</div><div>The big question is really why there was no “100 trying” from the phone before the ringing…</div><div><br class=""></div><div>/O</div><div><blockquote type="cite" class=""><div class=""><div bgcolor="#FFFFFF" text="#000000" class="">
    <br class="">
    The cancel_b_method parameter is there to control this behaviour,
    but it may apply only to the case when the cancel is received and
    needs to be forwarded, so this needs to be investigated for
    t_cancel_branches("others").<br class="">
    <br class="">
    Perhaps the best is to open an item on issue tracker from
    <a href="http://github.com/kamailio/kamailio" class="">github.com/kamailio/kamailio</a> not to forget about it -- these days
    are rather busy, with the freezing of the release in few days.<br class="">
    <br class="">
    Cheers,<br class="">
    Daniel<br class="">
    <br class="">
    <div class="moz-cite-prefix">On 02/01/2017 21:11, Aqs Younas wrote:<br class="">
    </div>
    <blockquote cite="mid:CAGVOjVV2aLM4eDJLj_Jnjv73dhF7y4gZ_UaoiVDFa=VRU4_xpg@mail.gmail.com" type="cite" class="">
      <div dir="ltr" class="">Greetings list, 
        <div class="">I am forking a call to multiple destinations and want to
          keep the only branch which sends quicker first 180/183 reply
          and cancel the remaining branches. Below is my related
          cfg snippet.</div>
        <div class="">
          <div class=""><br class="">
          </div>
          <div class=""><br class="">
          </div>
          <div class="">modparam("tm", "failure_reply_mode", 3)<br class="">
          </div>
          <div class="">modparam("tm", "fr_timer", 30000)<br class="">
          </div>
          <div class="">modparam("tm", "fr_inv_timer", 120000)<br class="">
          </div>
          <div class="">modparam("tm", "cancel_b_method", 2)</div>
        </div>
        <div class="">...</div>
        <div class="">
          <div class="">route[SIPOUT] {</div>
          <div class="">        if (uri==myself) return;</div>
          <div class=""><br class="">
          </div>
          <div class="">        append_hf("P-hint: outbound\r\n");</div>
          <div class="">        append_branch();</div>
          <div class="">        append_branch();</div>
          <div class="">        route(RELAY);</div>
          <div class="">        exit;</div>
          <div class="">}</div>
        </div>
        <div class="">
          <div class="">onreply_route[MANAGE_REPLY] {</div>
          <div class="">        xdbg("incoming reply\n");</div>
          <div class="">        if(status=~"[12][0-9][0-9]") {</div>
          <div class="">                xlog("L_INFO","Received $rs
            (IP:$si:$sp)\n");</div>
          <div class="">                if(status=~"18[03]"){</div>
          <div class="">                        t_cancel_branches("others");</div>
          <div class="">                        xlog("L_INFO","cancelled all
            other branches\n");</div>
          <div class="">                }</div>
          <div class="">                route(NATMANAGE);</div>
          <div class="">        }</div>
          <div class="">}</div>
        </div>
        <div class="">...</div>
        <div class=""><br class="">
        </div>
        <div class="">But I see kamailio does not instantly send CANCEL to other
          branches after it has received 180/180 from any branch. </div>
        <div class="">Kamailio is sending CANCEL to other branches after they
          start sending 180/183 one by one. How can I cancel all other
          branches instantly?</div>
        <div class=""><br class="">
        </div>
        <div class="">I am sure there is something wrongly configured in my
          configuration.  </div>
        <div class=""><br class="">
        </div>
        <div class="">Any suggestion is much appreciated. </div>
        <div class="">Best Regards.</div>
      </div>
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" 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>
    </blockquote>
    <br class="">
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com/">www.kamailioworld.com</a></pre>
  </div>

_______________________________________________<br class="">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br class=""><a href="mailto:sr-users@lists.sip-router.org" class="">sr-users@lists.sip-router.org</a><br class="">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br class=""></div></blockquote></div><br class=""></body></html>