[asterisk-users] Can Asterisk match a literal "*" in extensions.conf

Eric "ManxPower" Wieling eric at fnords.org
Fri Sep 14 16:13:28 CDT 2007


Jared Smith wrote:
> On Fri, 2007-09-14 at 10:51 -0600, Anthony Francis wrote:
>> . matches any number of the preceding character, change it to _X.*X.
> 
> That still won't help.  Once the Asterisk pattern matching parser sees a
> period in the pattern, it ignores anything after it.  (I'm not exactly
> happy about that, but that's the way it is.)  In short, Asterisk doesn't
> currently have a good way of handling this situation.  Hopefully
> somebody infinitely smarter than I am will take pity on our plight and
> give us a some more advanced pattern-matching tools.  (Hint, hint)
> 

Asterisk's pattern matching is NOT a regex.  . means match 1 or more 
character.  It has nothing to do with the preceding characters and must 
ALWAYS be the last character in a pattern match.



More information about the asterisk-users mailing list