Hello hopefully someone can help me,
i have been configuring a new asterisk server currently we are running asterisk 1.4 i have configured a new server running version 1.8.8.1 and i am now copying over several working scripts the below script currently fails at the GotoIF command
exten => s,1,Ringing
exten => s,n,Wait(1)
exten => s,n,Answer
exten => s,n,Set(CDR(userfield)=Spoof 1)
exten => s,n,Set(TIMEOUT(absolute)=600)
exten => s,n,NoOp( **** Read Spoof Keys )
exten => s,n,AGI(festival-script.pl,Enter Spoof)
exten => s,n,Read(Spoof,11,5)
exten => s,n,NoOp( **** Spoof ${Spoof} )
exten => s,n,GotoIf($["" = “${Spoof}”]?exit)
exten => s,n,AGI(festival-script.pl,Enter Number)
exten => s,n,NoOp( **** Read Number To Dial )
exten => s,n,Read(Number,11,5)
exten => s,n,NoOp( **** Number ${Number} )
exten => s,n,GotoIf($["" = “${Number}”]?s|exit)
exten => s,n,NoOp( Dial ${number} and pretend to be ${Spoof} )
exten => s,n,Set(CALLERID(num)=${Spoof})
exten => s,n,Set(CDR(userfield)=Spoof 2)
exten => s,n,Dial(SIP/AQL/${number},35,rCj)
exten => s(exit),n,Hangup
exten => t,n,Goto(s,exit)
exten => t,n,Set(CDR(userfield)=Spoof 3)
exten => h,n,Set(CDR(userfield)=Spoof 3)
the error i receive is
NOTICE[1371]: pbx.c:4152 pbx_extension_helper: No such label ‘exit’ in extension ‘s’ in context 'spoof’
WARNING[1371]: pbx.c:10408 pbx_parseable_goto: Priority ‘exit’ must be a number > 0, o valid label
what has changed in verion 1.8
thanks in advance