<div dir="ltr">OK. I think I found it. It is just confusing. In the DB a state of 0 means ENABLED and a state of 1 means DISABLED. When sending MI commands 0 will DISABLE and 1 will ENABLE. That seems a little backwards but I'm on 2.2.7 so maybe that was fixed in a newer version.<div><br></div><div>Thanks for the reply!</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 4, 2019 at 11:09 AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<tt>Hi Jim,<br>
<br>
That column is read by OpenSIPS only at startup. Basically it give
OpenSIPS the starting values for the GW states. If you change the
value in DB, it will have no effect on OpenSIPS until the next
restart.<br>
<br>
On the other side, OpenSIPS is able to update (write) that column
if the in-memory state of the GW does change (via MI or ping
detection) - but you need to be sure that 'persistent_state' is on
(see
<a class="gmail-m_2451787535060980909moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.4.x/drouting.html#param_persistent_state" target="_blank">http://www.opensips.org/html/docs/modules/2.4.x/drouting.html#param_persistent_state</a>).<br>
<br>
Regards,<br>
</tt>
<pre class="gmail-m_2451787535060980909moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="gmail-m_2451787535060980909moz-txt-link-freetext" href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
<a class="gmail-m_2451787535060980909moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/" target="_blank">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
<div class="gmail-m_2451787535060980909moz-cite-prefix">On 01/04/2019 04:40 PM, Jim DeVito
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Guys,
<div><br>
</div>
<div>Maybe i'm misunderstanding this column. I understand how to
enable and disable a carrier via MI commands during run time.
However I want to be able to modify the database (dr_carriers)
state column and have that respected at next reload. Currently
I can change that to 0 or 1 but the carrier is always marked
as enabled when I check at run time. </div>
<div><br>
</div>
<div>I've tried with <span style="color:rgb(0,0,0);font-family:Helvetica,Arial">persistent_state
set to 0 and 1 with no effect.</span></div>
<div><br>
</div>
<div>Thanks!<br>
<br>
<div dir="ltr" class="gmail-m_2451787535060980909gmail_signature">
<div dir="ltr">-------------
<div>Jim DeVito</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="gmail-m_2451787535060980909mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a class="gmail-m_2451787535060980909moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="gmail-m_2451787535060980909moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">-------------<div>Jim DeVito</div><div>Mobile 216.507.9497</div></div></div>