[OpenSIPS-Users] How to CANCEL a Dialog from script

mayamatakeshi mayamatakeshi at gmail.com
Mon Nov 7 22:12:21 UTC 2022


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 <alain.bieuzent at free.fr>
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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221108/5d8d1411/attachment.html>


More information about the Users mailing list