Hi
I have an issue with followme.
Our extensions.conf is as follows :
exten => _2XXX,1,Dial(SIP/${EXTEN},20,tT) ;Transfer Ability Enabled, see features.conf : Blind xfer #1 : Attended xfer *21
exten => _2XXX,2,GotoIf($[${DB(followme/${CALLERID(num)})} as "0"]?4:5)
exten => _2XXX,3,GotoIf($[${DB(followme/${CALLERID(num)})} as "0"]?5:4)
exten => _2XXX,4,Followme(${EXTEN})
exten => _2XXX,5,VoiceMail(${EXTEN}@staff-mailboxes,u)
exten => _2XXX,n,Hangup
exten => _3XXX,n,VoiceMail(${EXTEN}@staff-mailboxes,u)
;turn on/off follow me
;*44 = on
;*45 = off
exten => _*44,1,Set(DB(followme/${CALLERID(num)})=1)
exten => _*45,1,Set(DB(followme/${CALLERID(num)})=0)
However when I turn on follow me by issuing a *44 on our handset it does not work as asterisk cannot recognise the value of 1 as opposed to the value of 0 specified in line 2 of the above.
The error is as follows :
[Mar 23 16:19:10] WARNING[11757]: ast_expr2.fl:445 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected ‘’, expecting $end; Input: as “0”
Can anyone help ?