<p>I am forking a call to multiple destinations and want to keep the only branch which sends quicker provisional 180/183 reply and cancel the remaining branches. Below is my related cfg snippet.</p>
<p>modparam("tm", "failure_reply_mode", 3)<br>
modparam("tm", "fr_timer", 30000)<br>
modparam("tm", "fr_inv_timer", 120000)<br>
modparam("tm", "cancel_b_method", 2)<br>
...<br>
route[SIPOUT] {<br>
if (uri==myself) return;</p>
<pre><code>    append_hf("P-hint: outbound\r\n");
    append_branch();
    append_branch();
    route(RELAY);
    exit;
</code></pre>
<p>}<br>
onreply_route[MANAGE_REPLY] {<br>
xdbg("incoming reply\n");<br>
if(status=<del>"[12][0-9][0-9]") {<br>
xlog("L_INFO","Received $rs (IP:$si:$sp)\n");<br>
if(status=</del>"18[03]"){<br>
t_cancel_branches("others");<br>
xlog("L_INFO","cancelled all other branches\n");<br>
}<br>
route(NATMANAGE);<br>
}<br>
}<br>
...</p>
<p>But I see kamailio does not instantly send CANCEL to other branches after it has received 180/180 from any branch.<br>
Kamailio is sending CANCEL to other branches after they start sending 180/183 one by one.<br>
I want to cancel other brances instantly as soon as i get reply from any other branch.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/909">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZXr9R_kcvz4SQ5ybh-CekhZGITKcks5rOjP-gaJpZM4LZi58">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZZnOE0WX6rTfeSHWBs27ilLOQSfVks5rOjP-gaJpZM4LZi58.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/909"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"cancel the branches instantly instead of on provisional replies (#909)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/909"}}}</script>