4 posts / 0 new
Last post
IVSCOMM
IVSCOMM's picture
Joined: 2008/03/18
Points: 0

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})

chris
chris's picture
Joined: 2007/10/31
Points: 0

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)

Chris Norris, dCAP
Carolina Digital

IVSCOMM
IVSCOMM's picture
Joined: 2008/03/18
Points: 0

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?

Shawn Wright
IVSComm

eeman
eeman's picture
Joined: 2007/11/06
Points: 260

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})

Erik Smith
dCAP
Thirdlane/Asterisk Support available
esmith.bgnv@gmail.com