[asterisk-users] need help on asterisk call forwarding

Oguzhan Kayhan oguzhank at bilkent.edu.tr
Thu Apr 30 09:37:50 CDT 2009


> Hello,
> I am trying to enable call forwarding feature on asterisk 1.6.0.9 with
> asterisk-gui. Sure there is no menu for that on gui but, when i try to
> write some example scripts to extensions.conf to make it work. I totally
> failed.
>
> I dont wanna install smthing like freepbx etc on the system so, i need
> help to add unconditional etc call forwarding feature for 1.6
>
>
> Thanks
>
>
Ok I found an example script that said to be work..
but i have some errors.
Here is the script and then the error msgs.




[apps]
; Toggle Call Forward
exten => *666*,1,Answer
exten => *666*,2,GotoIf($[${DB(CFBOOLEAN/${CALLERID(NUM)})} = 1]?3:102)
exten => *666*,3,Set(DB(CFBOOLEAN/${CALLERID(NUM)})=0) ; toggle fwd off
exten => *666*,4,Playback(call-forward)
exten => *666*,5,Playback(disabled)
exten => *666*,6,Hangup
; CFBOOLEAN not exist means need to turn it on.
; first check to see if a FWD number is set
exten => *666*,102,GotoIf($[${DB(CFBOOLEAN/${CALLERID(NUM)})}= 1]?103:203)
exten => *666*,103,Set(DB(CFBOOLEAN/${CALLERID(NUM)}=1)) ; set FWD toggle on.
exten => *666*,104,Playback(call-forward)
exten => *666*,105,Playback(enabled)
exten => *666*,106,Hangup
exten => *666*,203,Playback(invalid)
exten => *666*,204,Hangup
; Unconditional Call Forward
exten => _*21*X.,1,Set(DB(CFIM/${CALLERID(NUM)})=${EXTEN:4})
exten => _*21*X.,2,Playback(call-forward)
exten => _*21*X.,3,Hangup
exten => *22*,1,DB_DELETE(CFIM/${CALLERID(NUM)})
exten => *22*,2,Hangup



When i dial *666*  i got the msg
"syntax error: syntax error, unexpected '=', expecting $end; Input: = 1"

and when i dial *22* i got the error


No application 'DB_DELETE' for extension (DLPN_international, *22*, 1)


CAn somebody help me fix the errors and explains what is the error about it?










>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>





More information about the asterisk-users mailing list