[OpenSIPS-Users] how to enable dr_gateway from script

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jan 21 06:59:12 UTC 2025


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
> 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/20250121/ec41277e/attachment-0001.html>


More information about the Users mailing list