[Asterisk-Dev] BOUNTY: app_hangup from exten => h

Eric Wieling eric at fnords.org
Thu Apr 14 11:59:18 MST 2005


Andrew Kohlsmith wrote:

> On April 14, 2005 01:46 pm, Rich Adamson wrote:
> 
>>>>; This section is the Last and handles 'no valid extension'
>>>>[no-match]
>>>>exten => _.,1,Answer
>>>>exten => _.,2,Playback(invalid,skip)
>>>>exten => _.,3,Hangup
>>>
>>>This is the "funky".  You call Hangup and so exten => h is called,
>>>which is matched by _.  Yet another evilness of _.
>>
>>So, if in the above section I remove priority 3, how would one
>>forcibly hang up the extension that called an undefined extension?
> 
> 
> exten => i,1,...
> 
> ??
> 
> There should be almost no reason to ever use _.

Unless Asterisk is waiting for DTMF (Background, Read, etc) the call 
will end when we run out of priorities.  OR you can just NOT USE _..


-- 
Always do right. This will gratify some people and astonish the rest.
Mark Twain



More information about the asterisk-dev mailing list