[Asterisk-Dev] Re: BOUNTY: app_hangup from exten => h
Eric Wieling
eric at fnords.org
Fri Apr 15 11:20:11 MST 2005
Brian West wrote:
>
> On Apr 15, 2005, at 6:37 AM, Andrew Kohlsmith wrote:
>
>> On April 14, 2005 03:07 pm, Brian West wrote:
>>
>>>> I disagree; This bounty's created some VERY GOOD discussion, and I
>>>> would love
>>>> to see some real-life useful examples of using _. to capture special
>>>> extensions.
>>>
>>>
>>> [contexta]
>>> include => catchall
>>>
>>> exten => _NXXNXX,1,Dial(blah)
>>>
>>> exten => h,1,Hangup
>>>
>>> [catchall]
>>> exten => _.,1,Playback(yousuck)
>>
>>
>> exten => i,1,Playback(yousuck)
>>
>> Hardly "NEXT!!!", as the 'i' extension is *designed* for this.
>>
>
> i, doesn't let you catch the true ${EXTEN} that they tried to dial now
> does it. ${EXTEN} would = i which is NOT WHAT YOU WANT.
As documented in README.variables the original extension is in
${INVAL_EXTEN} (or may be INVALID_EXTEN)
--
Always do right. This will gratify some people and astonish the rest.
Mark Twain
More information about the asterisk-dev
mailing list