<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.4.x/drouting.html#param_persistent_state">http://www.opensips.org/html/docs/modules/2.4.x/drouting.html#param_persistent_state</a>).<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
<div class="moz-cite-prefix">On 01/04/2019 04:40 PM, Jim DeVito
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAcmnhm-ix_p=VkgV-2XJEteMcDujhh+kuCEAzeE1FeEQizoJA@mail.gmail.com">
<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_signature"
data-smartmail="gmail_signature">
<div dir="ltr">-------------
<div>Jim DeVito</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>