<div dir="auto">You are right that this is not very explicit.<div dir="auto"><br></div><div dir="auto">Kamailio will cancel automatically once one branch connects but if it failed to cancel (meaning other branches connects)</div><div dir="auto">The originiting UAC will have to disconnect the extra calls.</div><div dir="auto"><br></div><div dir="auto">Which is something that is handled properly by most if not all.</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 20, 2020, 01:31 Ivan Ribakov <<a href="mailto:i.ribakov@zaleos.net">i.ribakov@zaleos.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi all,<div><br></div><div>What I’m trying to achieve is to have Kamailio fork an INVITE to multiple endpoints in parallel but only maintain the branch that responds first (first to respond with 200 OK I guess).</div><div><br></div><div>I’ve read the TM module documentation on forking (<a href="https://www.kamailio.org/docs/modules/stable/modules/tm.html#tm.serial_forking" target="_blank" rel="noreferrer">https://www.kamailio.org/docs/modules/stable/modules/tm.html#tm.serial_forking</a>) and as far as I understood a combination of “seturi()” + “append_branch()” + “t_relay()” command calls will allow me to send multiple forked INVITEs in parallel. </div><div><br></div><div>What I couldn't find information about in the documentation (please point me to it in case I missed it) is what controls (if any) do I have over forked requests. Do I need to keep track of the branches myself and cancel others when first succeeds or does Kamailio have some kind of setting for implementing such behaviour?</div><div><br></div><div>Thanks,</div><div>Ivan</div></div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>