[Asterisk-Users] How to make this into a Macro?
Sean Cook
scook at kinex.net
Sun Jun 4 16:56:42 MST 2006
>
> 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
>
>
Just to make a bit more modular...
; this will just allow you to pass in the voicemail box
exten => _NXXXXXX,1,Macro(dial,SIP/${EXTEN},${EXTEN}@Customer)
; you can use the same macro... (note you can also ring two extensions.
; we do this and each extensions softphone is ${EXTEN}h for convenience.
exten => _4XXX,1,Macro(dial,SIP/${EXTEN}&SIP/${EXTEN}h,${EXTEN}@Office)
[macro-dial]
exten => s,1,Dial(${ARG1},60,r)
exten => s,2,NoOp(${DIALSTATUS})
exten => s,3,Voicemail,u${ARG2}
exten => s,104,Voicemail,b$(ARG2}
exten => s,105,hangup
More information about the asterisk-users
mailing list