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

Eric Wieling eric at fnords.org
Thu Apr 14 08:52:52 MST 2005


Tony Mountifield wrote:

> In article <200504141058.39557.akohlsmith-asterisk at benshaw.com>,
> Andrew Kohlsmith <akohlsmith-asterisk at benshaw.com> wrote:
> 
>>On April 14, 2005 10:40 am, Eric Wieling wrote:
>>
>>>No, but I have seen many a time where people have exten => _.,Hangup
>>>which is not a good thing most of the time.
>>
>>Agreed.  :-)  I might take a crack at having the PBX throw up warnings if _. 
>>matches a special extension.
> 
> 
> I think the main reason people try doing _. is because . matches 1-or-more
> instead of 0-or-more, so to match Any Number, you have to have duplicate
> rule-sets for _X and _X.
> 
> Perhaps when searching for a "special extension" Asterisk should ignore
> any _. rules.

That would break a lot of people's dialplans.  That's why a NOTICE or 
WARNING is much better.  It won't break dialplans, but will at least 
tell you when you are doing something stupid.

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



More information about the asterisk-dev mailing list