[Asterisk-Users] pattern matching in dialplan problems matching _NNN

Thomas thmeier at gmail.com
Sat Jan 7 08:26:16 MST 2006


Hi,

I have a problem with pattern matching N what should digit 2 to 9
in Asterisk 1.2.1.

If I dial 220 I did not get an PlayBack of invalid. Asterisk jumps into the 
context dialout and find there an matching _2. and is using this. 

If I change _NNN to _XXX everything works fine. If I dial 220 I hear playtones 
invalid. It seemed to be that pattern matching with N is not working as 
designed.



Any ideas?

best regards
Thomas



extensions.conf
---------------------
[internal]
#include "/etc/asterisk/x_internal.conf"


x_internal.conf
-----------------

	exten => 210,1,Macro(internalsqldial_stand,${EXTEN})

	exten => _NNN,1,NoOp(wrong number dialed)
	exten => _NNN,n,PlayBack(invalid)
	exten => _NNN,n,Hangup()

	include => dialout






More information about the asterisk-users mailing list