<div dir="ltr">Thank You. Created. <div><a href="https://github.com/kamailio/kamailio/issues/909">https://github.com/kamailio/kamailio/issues/909</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 January 2017 at 13:20, 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,<br>
    </p>
    this is the behaviour required by rfc, to send cancel only after
    receiving a provisional reply 1xx.<br>
    <br>
    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>
    <br>
    Perhaps the best is to open an item on issue tracker from
    <a href="http://github.com/kamailio/kamailio" target="_blank">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>
    <br>
    Cheers,<br>
    Daniel<div><div class="h5"><br>
    <br>
    <div class="m_1763177897758647999moz-cite-prefix">On 02/01/2017 21:11, Aqs Younas wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Greetings list, 
        <div>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>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>modparam("tm", "failure_reply_mode", 3)<br>
          </div>
          <div>modparam("tm", "fr_timer", 30000)<br>
          </div>
          <div>modparam("tm", "fr_inv_timer", 120000)<br>
          </div>
          <div>modparam("tm", "cancel_b_method", 2)</div>
        </div>
        <div>...</div>
        <div>
          <div>route[SIPOUT] {</div>
          <div>        if (uri==myself) return;</div>
          <div><br>
          </div>
          <div>        append_hf("P-hint: outbound\r\n");</div>
          <div>        append_branch();</div>
          <div>        append_branch();</div>
          <div>        route(RELAY);</div>
          <div>        exit;</div>
          <div>}</div>
        </div>
        <div>
          <div>onreply_route[MANAGE_REPLY] {</div>
          <div>        xdbg("incoming reply\n");</div>
          <div>        if(status=~"[12][0-9][0-9]") {</div>
          <div>                xlog("L_INFO","Received $rs
            (IP:$si:$sp)\n");</div>
          <div>                if(status=~"18[03]"){</div>
          <div>                        t_cancel_branches("others");</div>
          <div>                        xlog("L_INFO","cancelled all
            other branches\n");</div>
          <div>                }</div>
          <div>                route(NATMANAGE);</div>
          <div>        }</div>
          <div>}</div>
        </div>
        <div>...</div>
        <div><br>
        </div>
        <div>But I see kamailio does not instantly send CANCEL to other
          branches after it has received 180/180 from any branch. </div>
        <div>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><br>
        </div>
        <div>I am sure there is something wrongly configured in my
          configuration.  </div>
        <div><br>
        </div>
        <div>Any suggestion is much appreciated. </div>
        <div>Best Regards.</div>
      </div>
      <br>
      <fieldset class="m_1763177897758647999mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="m_1763177897758647999moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a class="m_1763177897758647999moz-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_1763177897758647999moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_1763177897758647999moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_1763177897758647999moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_1763177897758647999moz-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>