[Asterisk-Users] Pattern-matching in the dial-plan

The Traveller traveler at xs4all.nl
Sun Dec 12 06:57:51 MST 2004


Hey all,

I'm trying to add some logic to a dial-plan to allow the caller to
terminate a number with a "#", but also accept it without this
terminator.  While trying this, I noticed that, for example,
extension "_[*0-9]XXX.#" always seems to match, whether the last digit
dialled is a "#" or not.  It's as if the parser assumes everything
after the "." will match and doesn't look any further.  Is this expected
behaviour?  If so, what would be the best solution to my problem?
I currently solved it by avoiding the "." and matching every possible
number-length seperately, both with and without the "#"-terminator.
It works, but seems like it should be doable with just 2 matches.

The box I'm trying this on is running the CVS HEAD of about a week
ago.  Thanks in advance for any suggestions.



   Grtz,

     Oliver



More information about the asterisk-users mailing list