[Asterisk-cvs] asterisk/configs extensions.conf.sample,1.23,1.24
markster at lists.digium.com
markster at lists.digium.com
Tue Jun 22 23:31:04 CDT 2004
Update of /usr/cvsroot/asterisk/configs
In directory mongoose.digium.com:/tmp/cvs-serv25817/configs
Modified Files:
extensions.conf.sample
Log Message:
Set ${DIALSTATUS} from app_dial, make zap return BUSY on a phone that is busy, update macro-stdexten to demo
Index: extensions.conf.sample
===================================================================
RCS file: /usr/cvsroot/asterisk/configs/extensions.conf.sample,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- extensions.conf.sample 11 Jun 2004 21:09:27 -0000 1.23
+++ extensions.conf.sample 23 Jun 2004 03:16:58 -0000 1.24
@@ -181,10 +181,16 @@
; ${ARG2} - Device(s) to ring
;
exten => s,1,Dial(${ARG2},20) ; Ring the interface, 20 seconds maximum
-exten => s,2,Voicemail(u${ARG1}) ; If unavailable, send to voicemail w/ unavail announce
-exten => s,3,Goto(default,s,1) ; If they press #, return to start
-exten => s,102,Voicemail(b${ARG1}) ; If busy, send to voicemail w/ busy announce
-exten => s,103,Goto(default,s,1) ; If they press #, return to start
+exten => s,2,Goto(s-${DIALSTATUS}) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
+
+exten => s-NOANSWER,1,Voicemail(u${ARG1}) ; If unavailable, send to voicemail w/ unavail announce
+exten => s-NOANSWER,2,Goto(default,s,1) ; If they press #, return to start
+
+exten => s-BUSY,1,Voicemail(b${ARG1}) ; If busy, send to voicemail w/ busy announce
+exten => s-BUSY,2,Goto(default,s,1) ; If they press #, return to start
+
+exten => s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer
+
exten => a,1,VoicemailMain(${ARG1}) ; If they press *, send the user into VoicemailMain
[demo]
More information about the svn-commits
mailing list