[asterisk-users] call forward problem

Daniel Tryba daniel at tryba.nl
Mon Nov 22 12:44:26 CST 2010


On Fri, Nov 19, 2010 at 12:04:47PM +0530, Aparna Narayan wrote:
> 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.
> 
> [apps]
> 
> 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

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).

-- 

   Daniel Tryba



More information about the asterisk-users mailing list