https://github.com/asterisk/asterisk/pull/1456 includes "lastexten" as one of the properties available, but by the time we're in the dialplan, lastexten has already been overwritten.
The goal is to allow alternate codes for the Last Number Redial feature (##
, if enabled in chan_dahdi.conf
), for pulse compatibility. However, if, say, 133 is dialed, and we want to access the last number, it's now 133 at this point. We need to store the previous last number as well, therefore, and return that at this point.
You must be