[Asterisk-Users] How to make this into a Macro?

Attilla De Groot mail at youmeandvoip.nl
Sun Jun 4 03:05:05 MST 2006


On Jun 4, 2006, at 11:50 AM, Ronald Wiplinger wrote:

> I have for each phone such a paragraph in my dialplan.
> I would like to save this by using a Macro. How can I do that?
>
> exten => 8863959,1,Dial(SIP/8863959,60,r)
> exten => 8863959,2,NoOp(${DIALSTATUS})
> exten => 8863959,3,Voicemail,u8863959 at Customers
> exten => 8863959,104,Voicemail,b8863959 at Customers
> exten => 8863959,105,hangup
>

Hi Ronald,


Just make something like this:

exten => 8863959,1,Macro(dial,8863959)

[macro-dial]
exten => s,1,Dial(SIP/${ARG1},60,r)
exten => s,2,NoOp(${DIALSTATUS})
exten => s,3,Voicemail,u${ARG1}@Customers
exten => s,104,Voicemail,b$(ARG1}@Customers
exten => s,105,hangup


Regards,
Attilla



More information about the asterisk-users mailing list