[Asterisk-Users] Re: [Asterisk] Major new * Dialplan Features
Steven Critchfield
critch at basesys.com
Tue Feb 18 13:14:35 MST 2003
On Tue, 2003-02-18 at 13:26, jharragi at mw.k12.ny.us wrote:
> [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)
Mybe it is me, but if you could do part 2 and 3, then why not reduce
further to this.
[macro-stdexten]
exten => $(ARG1),1,Dial(${ARG2),20)
exten => $(ARG1),2,Voicemail(u$(ARG1))
exten => $(ARG1),102,Voicemail(b$(ARG1))
[default]
Macro(stdexten,6275,Zap/1)
Macro(stdexten,6236,Zap/2)
Should be functionally equivelant without adding a new macro.
--
Steven Critchfield <critch at basesys.com>
More information about the asterisk-users
mailing list