diff options
author | Jonathan Rose <jrose@digium.com> | 2011-12-14 21:08:20 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2011-12-14 21:08:20 +0000 |
commit | 480d46f92c071aadb932368c6481194e634f27d7 (patch) | |
tree | 4daed856e4b84c7c50064d61ac4467dcf7b406b1 /main | |
parent | 25567299830015c0b87e25d7d2a86b2ab4e744c2 (diff) |
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)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@348161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/features.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/features.c b/main/features.c index e03e68570..6f23bd357 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 { |