[OpenSIPS-Users] [External] Re: how to enable dr_gateway from script
Pyle, Jeff
JPyle at fusionconnect.com
Tue Jan 21 17:20:34 UTC 2025
Got it! I was unaware of mi_script. Very cool.
- Jeff
________________________________
From: Bogdan-Andrei Iancu <bogdan at opensips.org>
Sent: Tuesday, January 21, 2025 01:59
To: OpenSIPS users mailling list <users at lists.opensips.org>; Pyle, Jeff <JPyle at fusionconnect.com>
Subject: [External] Re: [OpenSIPS-Users] how to enable dr_gateway from script
WARNING: This email originated outside of Fusion's email platform. DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe.
Hi Jeff,
Well, special cases require special approaches (I avoid here saying "ugly" approaches :P).
You can use the mi_script to run the dr_gw_status MI command :
async( mi("de_gw_status gw_id=$avp(gw_id) status=1") [,after_enable]);
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com<https://www.opensips-solutions.com/>
https://www.siphub.com<https://www.siphub.com/>
On 21.01.2025 05:21, Pyle, Jeff wrote:
Hello,
This is on OpenSIPS 3.4, although it appears the question applies to any modern version.
I see the dr_disable() option from the dialog module. What I don't see is a dr_enable() option. How does one enable a gateway from the script?
I realize that typically it should happen via probing, but I have some "special" situations where that doesn't work. It would be very handy to enable it from within the script.
Regards,
Jeff
This message is subject to Fusion Connect, Inc.’s email communication policy: www.fusionconnect.com/email-policy<http://www.fusionconnect.com/email-policy>
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
This message is subject to Fusion Connect, Inc.’s email communication policy: www.fusionconnect.com/email-policy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20250121/2ffd89f1/attachment.html>
More information about the Users
mailing list