Skip to main content

DISA Revisited

Posted by IVSCOMM on Wed, 05/22/2013

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


Submitted by chris on Thu, 05/23/2013 Permalink

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)

Submitted by IVSCOMM on Tue, 05/28/2013 Permalink

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?

Submitted by eeman on Tue, 06/04/2013 Permalink

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