Hi
I am trying to write a shell script to automatically test the reachability of trunks, and to enable/disable the trunks in the FreePBX files.
Basically my script tests for the trunk being available, and then sets the “trunk disabled” flag as follows:
update asterisk.trunks set disabled=‘on’ where trunkid=‘22’;
It then sets the “reload required” flag:
update asterisk.admin set value=‘true’ where variable=“need_reload”;
Finally, outside mysql, I issue the reload command:
/var/lib/asterisk/bin/module_admin reload
This seems to correctly flag the trunks as enabled/disabled, but the asterisk sip configuration files are not regenerated, and a “sip show registry” will still show the disabled trunk.
What additional flags to I need to set to cause the module reload command to regenerate the asterisk sip configurations?
Peter