call forward problem

Home » Asterisk Users » call forward problem
Asterisk Users 1 Comment

I tried to perform call forward in asterisk by writing the following in the
dial plan.The data base is getting updated with the caller ID number how
ever the call is not getting forwarded.


exten => _*21*XX,1,Set(DB(CFIM/${CALLERID(number)})=${EXTEN:4})
exten => _*21*XX,2,Hangup
exten => #21#,1,DBDel(CFIM/${CALLERID(num)})=${EXTEN:4}
exten => #21#,2,Hangup


One thought on - call forward problem

  • You are not actually forwarding the call, just storing a number to
    forward to. You need to implement a dialplan where calls to internal
    numbers check whether ${DB(CFIM/${EXTEN})} is empty (and do nothing) or
    set (and dial that number instead).