This feature request is posted after reading about the 999th thread about people losing sleep and/or hair because of the ASTERISK bug of losing almost all connectivity (even for internal extensions, zap trunks, etc.) if the Internet connection is interrupted.
The basic problem is that if there are ANY sip trunks enabled when the Internet goes down, Asterisk could potentially stop connecting calls. This has been discussed in other tickets including my previous Ticket #3199 so I will not rehash that discussion here. However, it occurs to me that there may be many reasons someone might want to be able to enable or disable individual trunks from within a bash or perl script, etc.
As far as I know, FreePBX doesn't offer any sort of command line interface to any of its functions. I'm suggesting here that it might be a good idea to consider having such an interface so that certain functions that are now only possible to control from within the GUI could be controlled from a script. And I would suggest that the capability of enabling or disabling individual trunks should be high on the list (as well as a way to force a FreePBX configuration reload, similar to clicking the orange bar in the GUI).
If by some chance this capability is already present, it has not ever come to my attention, so in that case please point me to the relevant documentation. But if, as I suspect, no such capability exists, I would suggest that it would be a well-received addition.