Re: [OpenSIPS-Users] How to CANCEL a Dialog from script
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 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@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] mid registrar question
I suppose even uac_registrar could be the right way any suggestions Thanks, Mike Sent with [Proton Mail](https://proton.me/) secure email. --- Original Message --- On Monday, November 7th, 2022 at 11:51 AM, nutxase via Users wrote: > Hi All, > > I am setting up the mid registrar module and was wondering if the following > is possible > > when the UAC drops its registration that the opensips keeps the registration > active on asterisk > > example we have a mobile softphone that goes to sleep and then opensips > deregisters on asterisk, so therefore asterisk wont send any incoming calls. > > how can i make opensips keep it active on asterisk even when the mobile > client in this case is "asleep" or offline > > any guidance would be appreciated! > > Sent with [Proton Mail](https://proton.me/) secure email.___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] dialog termination
Thanks Ben, I finally found another solution with the module mi_script (https://opensips.org/docs/modules/3.2.x/mi_script) $avp(callid) = $ci; mi("dlg_end_dlg", $var(dlg), $avp(callid)); Regards De : Users au nom de Ben Newlin Répondre à : OpenSIPS users mailling list Date : lundi 7 novembre 2022 à 14:54 À : OpenSIPS users mailling list Objet : Re: [OpenSIPS-Users] dialog termination I recommend using the E_DLG_STATE_CHANGED event. https://opensips.org/docs/modules/3.3.x/dialog.html#event_E_DLG_STATE_CHANGED Ben Newlin From: Users on behalf of M S Date: Monday, November 7, 2022 at 6:07 AM To: OpenSIPS users mailling list Subject: [OpenSIPS-Users] dialog termination EXTERNAL EMAIL - Please use caution with links and attachments Hi list, How do we get notified if an unacknowledged dialog is terminated? apparently dlg_on_hangup only works for state=4 dialog, when ACK is received. What if INVITE is sent, dialog created, then RINGING is received, then DECLINED is received? Thank you! ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] dialog termination
I recommend using the E_DLG_STATE_CHANGED event. https://opensips.org/docs/modules/3.3.x/dialog.html#event_E_DLG_STATE_CHANGED Ben Newlin From: Users on behalf of M S Date: Monday, November 7, 2022 at 6:07 AM To: OpenSIPS users mailling list Subject: [OpenSIPS-Users] dialog termination EXTERNAL EMAIL - Please use caution with links and attachments Hi list, How do we get notified if an unacknowledged dialog is terminated? apparently dlg_on_hangup only works for state=4 dialog, when ACK is received. What if INVITE is sent, dialog created, then RINGING is received, then DECLINED is received? Thank you! ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] TLS
Hello! Please help me with TLS. I have a schema with sip_tls_server <-> opensips <-> asterisk. I have read this tutorial: https://www.opensips.org/Documentation/Tutorials-TLS-2-1#toc15. I need to register my OpenSIPS as UAC, and make and receive calls from the Asterisk (UDP) through the OpenSIPS (as UAC) to the SIP_TLS_SERVER. Can anyone explain me, how to use a user_domain_setting with REGISTER and INVITE in a routing script? Regards, Vadim! ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] mid registrar question
Hi All, I am setting up the mid registrar module and was wondering if the following is possible when the UAC drops its registration that the opensips keeps the registration active on asterisk example we have a mobile softphone that goes to sleep and then opensips deregisters on asterisk, so therefore asterisk wont send any incoming calls. how can i make opensips keep it active on asterisk even when the mobile client in this case is "asleep" or offline any guidance would be appreciated! Sent with [Proton Mail](https://proton.me/) secure email.___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] dialog termination
Hi list, How do we get notified if an unacknowledged dialog is terminated? apparently dlg_on_hangup only works for state=4 dialog, when ACK is received. What if INVITE is sent, dialog created, then RINGING is received, then DECLINED is received? Thank you! ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] How to CANCEL a Dialog from script
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@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users