[Asterisk-Users] Re: [Asterisk] Major new * Dialplan Features

jharragi at mw.k12.ny.us jharragi at mw.k12.ny.us
Tue Feb 18 12:26:21 MST 2003


Hey Mark,

I think these additions will be of great value to those with large dial 
plans. 

A couple of questions. Are nested Macro's valid (I know this is the height 
of laziness)?

for example...

 [macro-stdexten]
 exten => s,1,Dial(${ARG2},20)
 exten => s,2,Voicemail(u${ARG1})
 exten => s,102,Voicemail(b${ARG2})

 [macro-lesstyping]
 exten => ${ARG1},Macro(stdexten,${ARG1},${ARG2})

[default]
Macro(lesstyping,6275,Zap/1)
Macro(lesstyping,6236,Zap/2)

.. or worse yet - it could be really succinct if [] could expand to an 
entry for each value - so [] would might look something like () in regular 
expressions...

[default]
Macro(lesstyping,62[01-24],Zap/$1)                    ;would handle a 
whole channel bank

John



-----------------------------------------------------
This message was sent using Monroe-Woodbury's WebMail.
http://webmail.mw.k12.ny.us/


This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus.




More information about the asterisk-users mailing list