From 1df66e6fae7aab01564e133dc7327f9b16c21380 Mon Sep 17 00:00:00 2001 From: Michael Geddes Date: Sat, 17 Jan 2009 11:08:40 +0000 Subject: Add LASTCALL_DIR to globals section if there is a DEST set. --- contrib/package/asterisk-xip/files/uci/lastcall | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib/package/asterisk-xip/files/uci') diff --git a/contrib/package/asterisk-xip/files/uci/lastcall b/contrib/package/asterisk-xip/files/uci/lastcall index f101bfedf..1a29c1d4b 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 -- cgit v1.2.3