[asterisk-users] pattern matching

Thomas Perron thomas.perron at gmail.com
Sat Dec 26 07:36:30 CST 2009


I want to ensure that only this extension is executed.
But, I have others that are similar.

I want:

exten => 34101,1,Answer()
exten => 34101,n,Record(34101:gsm)  ;   34101 test zip code
exten => 34101,n,Playback(34101)
exten => 34101,n,Hangup

Is this correct or do I need to have each of the four statements lead
with an underscore (_) to make an exact match?

Other code looks similar so I don't want the 102 to connect when I am
dialing 101

exten => 34102,1,Answer()
exten => 34102,,n,Record(34102:gsm)  ;   34102 test zip code
exten => 34102,n,Playback(34102)
exten => 34102,n,Hangup



More information about the asterisk-users mailing list