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