[asterisk-users] MACRO-INCOMING-CALL-TO-EXTENSION
Danny Dias
ing.diasdanny at gmail.com
Sat Jul 11 16:57:31 CDT 2009
Hello my friends,
I've a doubt, i want to be able to forward the incoming calls from PSTN to
my cell phone...i mean, qhen i'm out of the office i need like aq macro that
helps me to forward the incoming call that goes for example to my internal
extension SIP 207, i 've this macro but i can make it work properly....i
can't activate the forward in the phone, is quite confuse:
*[macro-incoming-call-to-extension]*
*exten => s,1,NoOp(${CALLERID(all)})*
*exten => s,n,Ringing*
*exten => s,n,Set(ALERT_EXTERNAL=TRUE)*
*;CFB Call Forwarding Busy*
*;CFNR Call Forwarding No Reply*
*;CFU Call Forwarding Unconditional*
*exten => s,n,Set(EXTENSION=${CUT(ARG1,/,2)})*
*exten =>
s,n,GotoIf(${EXISTS(${DB(CFU/${EXTENSION})})}?${ARG5},${DB(CFU/${EXTENSION})},1)
;Get CFU key*
*exten => s,n,GotoIf(${EXISTS(${DB(DND/${EXTENSION})})}?s-BUSY,1) ;Get DND
key*
*exten => s,n,Dial(${ARG1},${ARG2},${MOHCLASS}tw)*
*exten => s,n,Goto(s-${DIALSTATUS},1)*
*exten => s-ANSWER,1,Hangup*
*exten =>
s-NOANSWER,1,GotoIf(${EXISTS(${DB(CFNR/${EXTENSION})})}?${ARG5},${DB(CFNR/${EXTENSION})},1)
;Get CFNR key*
*exten => s-NOANSWER,n,Macro(voicemailbox,${ARG3},${ARG4})*
*exten =>
s-BUSY,1,GotoIf(${EXISTS(${DB(CFB/${EXTENSION})})}?${ARG5},${DB(CFB/${EXTENSION})},1)
;Get CFB key*
*exten => s-BUSY,n,Macro(voicemailbox,${ARG3},${ARG4})*
*exten => _s-.,1,Macro(voicemailbox,${ARG3},${ARG4})*
Thanks for your help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090711/92876f01/attachment.htm
More information about the asterisk-users
mailing list