[asterisk-users] Get context with hangup handler
Steve Edwards
asterisk.org at sedwards.com
Wed Jan 5 21:00:42 CST 2022
On Wed, 5 Jan 2022, Dovid Bender wrote:
> I have a hangup handler that's added at the beginningĀ of a call. It logs
> all the call details. Using the CONTEXT variable I am always going to
> get the context where the code is being ran and not the last context
> that the caller is in. Is there any creative way to get the last context
> at the call was in?
At the start of each context/priority...
exten = <whatever>,1, verbose(1,[${EXTEN}@${CONTEXT}])
same = n, set(LAST-CONTEXT=${context}
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281
More information about the asterisk-users
mailing list