<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
Got it! I was unaware of mi_script. Very cool.</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
- Jeff</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Bogdan-Andrei Iancu <bogdan@opensips.org><br>
<b>Sent:</b> Tuesday, January 21, 2025 01:59<br>
<b>To:</b> OpenSIPS users mailling list <users@lists.opensips.org>; Pyle, Jeff <JPyle@fusionconnect.com><br>
<b>Subject:</b> [External] Re: [OpenSIPS-Users] how to enable dr_gateway from script</font>
<div> </div>
</div>
<div>
<div style="border:1px solid #FFD300; padding:3px"><font size="3" face="Calibri" color="#FF0000">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.</div>
</font>
<div><font face="monospace">Hi Jeff,<br>
<br>
Well, special cases require special approaches (I avoid here saying "ugly" approaches :P).<br>
<br>
You can use the mi_script to run the dr_gw_status MI command :<br>
<br>
    async( mi("de_gw_status gw_id=$avp(gw_id) status=1") [,after_enable]);</font><font face="monospace"><br>
<br>
Regards,<br>
</font>
<pre class="x_moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="x_moz-txt-link-freetext" href="https://www.opensips-solutions.com/" originalsrc="https://www.opensips-solutions.com/" shash="YLsGk//xFjL2olyoYo/fd8igEUn4lNipNHPeauQmWctI0DAphaOao7cLS+JXPZ8Pch7OHBoQPJhR0u09LWJXqSsKUCwjUopi5cHI1IZUc56GGWQWFlkETWu8ZujSZQaCchFf8hAqGXQuVdi/rEk92V4DDR+K62FHJhEKyDus7P0=">https://www.opensips-solutions.com</a>
  <a class="x_moz-txt-link-freetext" href="https://www.siphub.com/" originalsrc="https://www.siphub.com/" shash="z0QiQywByqNJELU1m1oSFDLs/aCt7aemzft5tra/g0sKFW4LTaxwqyuSasmiDsBbQax7/6e9UVTTJ78ksJqFMYbPmVGrL/rkfjS0Eu/NHUtlduMFss0XFeYQomaDwJG4mpLBr1ueMwVX2dFGlri6bMMskKKWQ+YR8X166bd9oMY=">https://www.siphub.com</a></pre>
<div class="x_moz-cite-prefix">On 21.01.2025 05:21, Pyle, Jeff wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
Hello,</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
This is on OpenSIPS 3.4, although it appears the question applies to any modern version.</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
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?</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
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.</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
Regards,</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
Jeff</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Verdana,Geneva,sans-serif; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
This message is subject to Fusion Connect, Inc.’s email communication policy: <a class="x_moz-txt-link-abbreviated" href="http://www.fusionconnect.com/email-policy" originalsrc="http://www.fusionconnect.com/email-policy" shash="iVu4vQHxzlJcQ+IVBq1f4CpQRtz1WSN0dS3mAD61jDyDd6+95KyFz1JXWjyfY35EHAVnMfOJ4kbqqrdCS082Q0bLKfj+TDNzJlLmkOyljtdTsyw5IkbgUnEhPGbfTjA/bjWPEqY1PX4gC5aw+UWDl0tCh3XaC7wIrdmpT8Oa8zE=">
www.fusionconnect.com/email-policy</a> <br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
Users mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="x_moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" originalsrc="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" shash="cyOe754stqnGTvcnhJs7Sf/K/F8Ue4kgGoJJNZHqVoXpSDwiGFlNGhgn84usxO/+ex4kr8Fz51ef5eJY+G4U6tnjFfHroVGwmVKZIYMafqowIaRukswkJDaOUlsL6iJ5OQUc4kRkCVvqlltsw+lvMktRmV5U6OWeJCGNMRFRnwE=">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</div>
This message is subject to Fusion Connect, Inc.’s email communication policy: www.fusionconnect.com/email-policy
</body>
</html>