Tags

, , , , , , , , , , ,

See the previous call forward setup.  Use the same setup and append the below lines to /etc/asterisk/extensions_custom.conf , change the numbers to where you want to enable call forwarding(ie. the your mobile number from where you pick up the forwarded call)  and reload asterisk. Dial your office number from your mobile when you reach IVR dial 9 which will enable call forwarding . Now all calls to your office are forwarded to your mobile.

[ivr-5-custom]
exten => 9,1,NoOP(${CALLERID(num)})
exten => 9,n,GotoIf($["${CALLERID(num)}" = "0X5X8X0X2X" || "${CALLERID(num)}" = "05X9X4X8XX"]?cact)
exten => 9,n,Goto(ivr-5,s,1)
exten => 9,n(cact),Goto(from-internal,*${CALLERID(num)},1)
Advertisement