<div dir="ltr"><div>Maybe you could use t_cancel_branch():</div><div><br></div><div>onreply_route[XXX] {<br>...<br>    if ((t_check_status("180") && (SOME_HEADER_HAS_SOME_VALUE)) {<br>        t_cancel_branch("a");<br>    }<br>...<br>}<br><br><a href="https://opensips.org/html/docs/modules/3.2.x/tm#func_t_cancel_branch">https://opensips.org/html/docs/modules/3.2.x/tm#func_t_cancel_branch</a><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 7, 2022 at 6:45 PM Alain Bieuzent <<a href="mailto:alain.bieuzent@free.fr">alain.bieuzent@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg5010963459117577358"><div lang="FR" style="overflow-wrap: break-word;"><div class="m_5010963459117577358WordSection1"><p class="MsoNormal"><span style="font-size:11pt">Hi all,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">I need to end a call not yet established from my script; how can I do that?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">example :<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">I receive an INVITE followed by a 180 Ringing<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">I read a header in the 180 Ringing and depending on the value of the header, I want to cancel this call.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Kinda like like a dlg_end_dlg but from my script.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Alain.<u></u><u></u></span></p></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></blockquote></div></div>