Command-line change extensions parameters

I’m looking for a way to change extensions parameters from comand line.
I need to change max_expiration for extensions or disable call waiting in a fast way. Is there any comnand-line function to do this?

You may be able to change max expiration with Bulk Import, which has fwconsole support:

And for Call Forward, see this script:

For using bulk-import I suppose I should first export the data and then re-import it? How can I do this?

I think the php script method is better but I can’t find documentation for the FreePBX object.

I’ve found $FreePBX->Core->getDevice($extension), but I can’t find a setDevice or writeDevice() for writing the changes.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.