Got it! I was unaware of mi_script. Very cool.
- Jeff ________________________________ From: Bogdan-Andrei Iancu <bog...@opensips.org> Sent: Tuesday, January 21, 2025 01:59 To: OpenSIPS users mailling list <users@lists.opensips.org>; Pyle, Jeff <jp...@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@lists.opensips.org<mailto:Users@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
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users