I need to automate the process of adding an Inbound Route.
Can someone help here ?
What I have understood thus far is I need to fire the following mysql query:
INSERT INTO `incoming` VALUES ('','123123123','timeconditions,11,1','disabled','',0,0,0,'','','default','Test','',0,'');
Need help in understanding what happens when the user presses the “Apply Configuration Changes” button and how can I do this using a script (automation)
it’s always a bit ‘dangerous’ to just enter something into SQL. You are also ignoring possible hooks by other modules that might need to know about the new route. Lastly, the specific insert is not even listing the fields but dependent on table order which could always change with future updates. You would be better off trying to include and use the function that FreePBX uses from core.
As far as doing the equivalent of the Apply Configuration Changes button, see the module_admin script supplied by FreePBX (the CLI version), it has a “reload” option that can be called that does this.
it’s unlikely an issue and very possibly already fixed. The error is fairly meaningless though without know what line 834 is on your specific version of that functions.inc.php file.