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

Josh Roberson twisted at indigent-networks.com
Thu Apr 14 08:48:56 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.
>
>Cheers
>Tony
>  
>
I would have to disagree with you here, since it is (or should be) 
widely known that _. is a wildcard match, and will match ANYTHING.  This 
behaviour is GOOD, when you just need to capture anything that is sent 
into a particular context, and parse it.  Sure, ruling out _. would be 
great for newbies, but some of us experienced folk use this for more 
than just numeric extensions - we actually determine, and work around 
some of the system extensions using this operator.

-Josh



More information about the asterisk-dev mailing list