diff --git a/configs/features.conf.sample b/configs/features.conf.sample index 4043c385321b5511d05e54affe2397fe2806315d..904c5d9373b97594d64cbef378a922e59c3ddbb2 100644 --- a/configs/features.conf.sample +++ b/configs/features.conf.sample @@ -43,8 +43,9 @@ context => parkedcalls ; Which context parked calls are in (default par ; created in the 'park-dial' context. This extension will be set up to do a ; Dial() to 'SIP/0004F2040001'. ; - ; During the timeout procedure, the following variable is set + ; During the timeout procedure, the following variables are set ; PARKINGSLOT - extension that the call was parked in prior to timing out + ; PARKEDLOT - name of the lot that the call was parked in prior to timing out ;courtesytone = beep ; Sound file to play to when someone picks up a parked call ; and also when the Touch Monitor is activated/deactivated. diff --git a/main/features.c b/main/features.c index e03e685708e682e9abb331dc03c10057474824cb..6f23bd357d6bf795944b2190d2117d7c4537febc 100644 --- a/main/features.c +++ b/main/features.c @@ -4632,6 +4632,7 @@ static int manage_parked_call(struct parkeduser *pu, const struct pollfd *pfds, snprintf(parkingslot, sizeof(parkingslot), "%d", pu->parkingnum); pbx_builtin_setvar_helper(chan, "PARKINGSLOT", parkingslot); + pbx_builtin_setvar_helper(chan, "PARKEDLOT", pu->parkinglot->name); set_c_e_p(chan, "parkedcallstimeout", peername_flat, 1); } } else {