<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>