[OpenSIPS-Users] Dynamic Routing dr_carrier state column understanding
jim at devito.cc
Fri Jan 4 11:18:59 EST 2019
I think I understand that my problem is that the carriers are always
enabled when OpenSIPS starts even though the state column is set to 0. That
is part I don't understand. Do you have any thoughts there?
On Fri, Jan 4, 2019 at 11:09 AM Bogdan-Andrei Iancu <bogdan at opensips.org>
> Hi Jim,
> 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.
> 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
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> OpenSIPS Summit 2019
> On 01/04/2019 04:40 PM, Jim DeVito wrote:
> Hi Guys,
> 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.
> I've tried with persistent_state set to 0 and 1 with no effect.
> Jim DeVito
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users