[asterisk-commits] jrose: trunk r348161 - in /trunk: configs/features.conf.sample main/features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 14 15:08:24 CST 2011
Author: jrose
Date: Wed Dec 14 15:08:20 2011
New Revision: 348161
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=348161
Log:
Add and document PARKEDCALL variable set during timeout
PARKEDCALL variable tracks which parking lot the call was last parked in. This can be
used afterwards for flow control when returntoorigin is set to off. I went ahead and
documented both this and the existing variable set during timeout (PARKINGSLOT) in
the sample features.conf since there was no prior mention of variables being set during
timeout.
(closes issue ASTERISK-16239)
Reported By: Clod Patry
Patches:
M17503.diff uploaded by Clod Patry (license 5138)
Modified:
trunk/configs/features.conf.sample
trunk/main/features.c
Modified: trunk/configs/features.conf.sample
URL: http://svnview.digium.com/svn/asterisk/trunk/configs/features.conf.sample?view=diff&rev=348161&r1=348160&r2=348161
==============================================================================
--- trunk/configs/features.conf.sample (original)
+++ trunk/configs/features.conf.sample Wed Dec 14 15:08:20 2011
@@ -43,8 +43,9 @@
; 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.
Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=348161&r1=348160&r2=348161
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Wed Dec 14 15:08:20 2011
@@ -4632,6 +4632,7 @@
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 {
More information about the asterisk-commits
mailing list