diff options
author | Michael Geddes <openwrt@frog.wheelycreek.net> | 2009-01-17 11:08:40 +0000 |
---|---|---|
committer | Michael Geddes <openwrt@frog.wheelycreek.net> | 2009-01-17 11:08:40 +0000 |
commit | 1df66e6fae7aab01564e133dc7327f9b16c21380 (patch) | |
tree | 72750186c532456d1a9c9ce859558afe64634ccf /contrib/package | |
parent | 2c79f6771cd5bbf7a8503e164b8ad7f13f0aab14 (diff) |
Add LASTCALL_DIR to globals section if there is a DEST set.
Diffstat (limited to 'contrib/package')
-rwxr-xr-x | contrib/package/asterisk-xip/files/uci/lastcall | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/package/asterisk-xip/files/uci/lastcall b/contrib/package/asterisk-xip/files/uci/lastcall index f101bfedf6..1a29c1d4be 100755 --- a/contrib/package/asterisk-xip/files/uci/lastcall +++ b/contrib/package/asterisk-xip/files/uci/lastcall @@ -105,7 +105,9 @@ add_dialplan_lastcall(){ enable_lastcall() { if [ "${dialplan_do_add_lastcall}" != "1" ] ; then logdebug 2 "Enabling lastcall" + append dialplan_globals "LASTCALLZONE=\"${asterisk_zone}\"" "$N" + [ -z "${DEST}" ] || append dialplan_globals "LASTCALL_DIR=${DEST}/etc/asterisk/directory" "$N" append_include "macros/lastcall.conf" dialplan_do_add_lastcall=1 enable_module app_macro |