<p><a href="https://github.com/hydrosine" class="user-mention">@hydrosine</a> , actually it is not a bug, but a not well documented behavior.  During reload, the module tries to preserve the state it has in-memory - which is normal, as the master copy of the state info is in memory ; Imagine the scenario where you have in DB state "enabled", you start opensips and after some time you get a GW disabled (by MI or probing) - following a dr_reload, you do not want to have the in-memory state affected (but to stay disabled, even in DB is the original enabled).<br>
So, your usage scenario is not correct. IF you want to change the state , do it via the MI command -&gt; this will change both in-memory and the DB value. </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/275#issuecomment-49982381">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMTgxMDk3NywiZGF0YSI6eyJpZCI6Mzc1OTUzNDN9fQ==--1dd9bee2b5ffcfe7fbf97fc075c77afd9e5e7278.gif" width="1" /></p>