Add LASTCALL_DIR to globals section if there is a DEST set.
This commit is contained in:
parent
2c79f6771c
commit
1df66e6fae
1 changed files with 2 additions and 0 deletions
|
@ -105,7 +105,9 @@ add_dialplan_lastcall(){
|
||||||
enable_lastcall() {
|
enable_lastcall() {
|
||||||
if [ "${dialplan_do_add_lastcall}" != "1" ] ; then
|
if [ "${dialplan_do_add_lastcall}" != "1" ] ; then
|
||||||
logdebug 2 "Enabling lastcall"
|
logdebug 2 "Enabling lastcall"
|
||||||
|
|
||||||
append dialplan_globals "LASTCALLZONE=\"${asterisk_zone}\"" "$N"
|
append dialplan_globals "LASTCALLZONE=\"${asterisk_zone}\"" "$N"
|
||||||
|
[ -z "${DEST}" ] || append dialplan_globals "LASTCALL_DIR=${DEST}/etc/asterisk/directory" "$N"
|
||||||
append_include "macros/lastcall.conf"
|
append_include "macros/lastcall.conf"
|
||||||
dialplan_do_add_lastcall=1
|
dialplan_do_add_lastcall=1
|
||||||
enable_module app_macro
|
enable_module app_macro
|
||||||
|
|
Loading…
Reference in a new issue