Maybe you could use t_cancel_branch():
onreply_route[XXX] {
...
if ((t_check_status("180") && (SOME_HEADER_HAS_SOME_VALUE)) {
t_cancel_branch("a");
}
...
}
https://opensips.org/html/docs/modules/3.2.x/tm#func_t_cancel_branch
On Mon, Nov 7, 2022 at 6:45 PM Alain Bieuzent <[email protected]>
wrote:
> Hi all,
>
>
>
> I need to end a call not yet established from my script; how can I do that?
>
>
>
> example :
>
> I receive an INVITE followed by a 180 Ringing
>
> I read a header in the 180 Ringing and depending on the value of the
> header, I want to cancel this call.
>
>
>
> Kinda like like a dlg_end_dlg but from my script.
>
>
>
> Alain.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users