# DISA Script

**URL:** <https://community.asterisk.org/t/disa-script/12942>\
**Category:** Asterisk Support\
**Created:** [March 8, 2007, 11:45am UTC](https://community.asterisk.org/t/disa-script/12942 "2007-03-08T11:45:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asg](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@asg](https://community.asterisk.org/u/asg)\
**Post date:** [March 8, 2007, 11:45am UTC](https://community.asterisk.org/t/disa-script/12942/1 "2007-03-08T11:45:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![baconbuttie](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/baconbuttie/32/916_2.png) [@baconbuttie](https://community.asterisk.org/u/baconbuttie)\
**Post date:** [March 8, 2007, 12:17pm UTC](https://community.asterisk.org/t/disa-script/12942/2 "2007-03-08T12:17:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![asg](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@asg](https://community.asterisk.org/u/asg)\
**Post date:** [March 8, 2007, 3:24pm UTC](https://community.asterisk.org/t/disa-script/12942/3 "2007-03-08T15:24:19Z")

</div>

thanks for your support

can you explain your script

thanks

---

<div class="post-metadata">

**Author:** ![asg](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@asg](https://community.asterisk.org/u/asg)\
**Post date:** [March 9, 2007, 10:42am UTC](https://community.asterisk.org/t/disa-script/12942/4 "2007-03-09T10:42:16Z")

</div>

where can i find passcode ?

---

<div class="post-metadata">

**Author:** ![baconbuttie](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/baconbuttie/32/916_2.png) [@baconbuttie](https://community.asterisk.org/u/baconbuttie)\
**Post date:** [March 9, 2007, 11:54am UTC](https://community.asterisk.org/t/disa-script/12942/5 "2007-03-09T11:54:46Z")

</div>

${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.
