Displaying 2 results from an estimated 2 matches for "divertoff".
2016 Mar 03
2
Asterisk Call Forwarding
Hi
I have to setup call forwarding. How do we setup Call forwarding in
asterisk?. Eg. user dials a number and insert some mobile number for
forwarding and dial another number to cancel the forwarding. thanks a lot.
Best Regards,
Madushan?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 Mar 03
2
Asterisk Call Forwarding
...same => n,Hangup()
> same => n(void),Gosub(divertvoid,1)
> exten => _#21,1,Answer()
> same => n,GotoIf($["${CALLERID(num)}"="<redacted>"]?divert:void)
> same => n(divert),Verbose(0,${DB_DELETE(divert/${CALLERID(num):-4})})
> same => n,Gosub(divertoff,1)
> same => n,Hangup()
> same => n(void),Gosub(divertvoid,1)
>
> (note: use whatever you need in the GotoIf to validate that the phone
> the call is from is permitted to set up call forwarding - unless you're
> allowing it for all that can reach the context)
>
> T...