[asterisk-users] pattern matching

Juan E. Rodríguez jerdguez at gmail.com
Sat Dec 26 07:58:11 CST 2009


You do not need to use pattern matching if you know the extension you are going to receive.

Check the spelling on the dialplan if it does not work. You can start at the duplicated comma of the 34102.

------Mensaje original------
De: Thomas Perron
Remitente: asterisk-users-bounces at lists.digium.com
Para: asterisk-users at lists.digium.com
Responder a: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: [asterisk-users] pattern matching
Enviado: 26 Dic, 2009 09:36

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

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Saludos,
Juan E. Rodríguez


More information about the asterisk-users mailing list