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.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

_______________________________________________
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

Reply via email to