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
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users