DISA Script

hello all

i have scopserv there is no DISA feature i need to write script to use DISA,
there is example For script and i want to complete this script

exten => s,1,Authenticate(1234)
exten => s,5,Dial(all/${MACRO_EXTEN:1}@CLASS_OF_SERVICE)
; (ex. all-outgoing)

and this step by step what i want :-

1- From PSTN dail asterisk Free No
2- From IVR menu press 5 ( i configured this ) refer me to DISA script.
3- Enter DISA Pass
4- I can make a call when i press 9 and Number or make a VOIP call when i press 5.

please i want help to compelet the script

Thanks

here’s what i use :[system-disa] exten => s,1,NoOp(Caller trying to get an internal dialtone) exten => s,2,Playback(vm-password&beep) exten => s,3,Set(TIMEOUT(digit)=4) exten => s,4,Set(TIMEOUT(response)=10) exten => s,5,Read(PASSCODE,,6) exten => s,6,NoOp(${PASSCODE}) exten => s,7,GotoIf($[${PASSCODE}=${DISA_PASSCODE}]?8:13) exten => s,8,Playback(beep) exten => s,9,Wait(1) exten => s,10,DISA(no-password|from-internal) exten => s,11,Macro(hangupcall) exten => s,13,Playback(beeperr) exten => s,14,Goto(system-disa,s,2)

thanks for your support

can you explain your script

thanks

where can i find passcode ?

${PASSCODE} is “read” from the caller at priority 5, and ${DISA_PASSCODE} is a global variable that is set in the [general] section of extensions.conf.

we do a simple comparison and proceed accordingly.