Dozment posted some scripts a while back (2008) They didn't quite work I have done some tweaking and I get dial tone but I can't dial out. I get an error tone. My Caller ID arg does not work either. Can some code jockeys take a look and tell me what I am doing wrong.
exten => s,1,Answer
exten => s,2,Set(TIMEOUT(digit)=5)
exten => s,3,Set(TIMEOUT(response)=30)
exten => s,4,Wait(1)
exten => s,5,GotoIf(["${CALLERID(num)}" != "${ARG2}"]?11:10)
exten => s,10,Hangup
exten => s,11,Authenticate(${ARG1})
exten => s,12,DISA(no-password|outgoing${TL_DASH}${tenant})
Still does not work...
It asks for the password then it gives me dial tone but when I dial it errors out. any ideas of where to look next?
check your CLI, you should
check your CLI, you should have some error like maybe invalid extension in that context.
get rid of that pipe, its depreciated, replace it with a comma
exten => s,12,DISA(no-password,outgoing${TL_DASH}${tenant})
Looks like you left out a dollar sign($) in line 5 between the open parenthesis and open square bracket.
exten => s,5,GotoIf($["${CALLERID(num)}" != "${ARG2}"]?11:10)