mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user