diff options
author | Michael Geddes <openwrt@frog.wheelycreek.net> | 2009-01-18 12:48:35 +0000 |
---|---|---|
committer | Michael Geddes <openwrt@frog.wheelycreek.net> | 2009-01-18 12:48:35 +0000 |
commit | 29c406acea9677abeb351d3d2060d5662b4d42c3 (patch) | |
tree | 993eb7c4a95e14848dcf43f323099e72058e128e /contrib/package/asterisk-xip | |
parent | 14c485e11719f2385f01397f7d7eeeed9ed460ea (diff) |
Ability for 'module' configs to have an optional 'createdialplan' section.
Used to create voicemenus.
Diffstat (limited to 'contrib/package/asterisk-xip')
-rwxr-xr-x | contrib/package/asterisk-xip/files/uci/asteriskuci | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/package/asterisk-xip/files/uci/asteriskuci b/contrib/package/asterisk-xip/files/uci/asteriskuci index 6f08dffd6..4de95a7fc 100755 --- a/contrib/package/asterisk-xip/files/uci/asteriskuci +++ b/contrib/package/asterisk-xip/files/uci/asteriskuci @@ -76,7 +76,10 @@ check_checksum() { # Add config module to initialise list ast_add_conf() append asterisk_conf_list $1 " " # Add module to initialise list -ast_add_module() append asterisk_module_list $1 " " +ast_add_module() { + append asterisk_module_list $1 " " + eval "createdialplan_$1() return 0" +} # Add to 'reload' list. ast_add_reload() append asterisk_load_list $1 " " @@ -202,6 +205,11 @@ setup_asterisk() { logdebug 1 "Create $i config" eval "create_${i}conf" done + + for i in ${asterisk_module_list} ; do + logdebug 1 "Create Dialplan for module $i" + eval "createdialplan_${i}" + done create_dialplanconf create_moduleconf |