[asterisk-users] Using * in extension name

Chris Tracy asterisk at adiemus.org
Wed Dec 19 13:33:09 CST 2007


> ringing.  But I can't get that far.  If I use *7268 specially it works
> fine, but as soon as I introduce any wild card char (X, N, Z, !, .) it
> responds with 404 and nothing is logged.

 	Obvious suggestion, but did you prepend the extension with an 
underscore to tell asterisk you wanted a pattern match?  To wit (assuming 
you're using extension.conf and not AEL, but AEL is similar):

exten => *7268,1,NoOp

will work for dialing *7268.  But:

exten => *76XX,1,NoOp

won't ever match anything because you've not told asterisk you're asking 
for a pattern.  But:

exten => _*76XX,1,NoOp

should do what you're after.

 	Chris



More information about the asterisk-users mailing list