Asterisk dynamic conf files
Some times, you want your configuration file to be generate dynamicly from an external process for exemple.
To do so, you can use the #exec directive in the configuration file.
First, active execincludes in /etc/asterisk/asterisk.conf
vim /etc/asterisk/asterisk.conf
execincludes = yes
Then in your configuration file add:
#exec /usr/bin/config_generator.sh
config_generator.sh can be written on any program and need to be executable.
You can a
March 21, 2011 | Filed Under Tricks

