[Pkg-voip-commits] r3475 - freepbx/trunk/debian/astetc/extensions.d
Tzafrir Cohen
tzafrir-guest at alioth.debian.org
Wed Apr 25 07:40:55 UTC 2007
Author: tzafrir-guest
Date: 2007-04-25 07:40:54 +0000 (Wed, 25 Apr 2007)
New Revision: 3475
Added:
freepbx/trunk/debian/astetc/extensions.d/demo.conf
Log:
Actually commit the demo extension change.
Added: freepbx/trunk/debian/astetc/extensions.d/demo.conf
===================================================================
--- freepbx/trunk/debian/astetc/extensions.d/demo.conf 2007-04-25 07:35:39 UTC (rev 3474)
+++ freepbx/trunk/debian/astetc/extensions.d/demo.conf 2007-04-25 07:40:54 UTC (rev 3475)
@@ -0,0 +1,68 @@
+[demo]
+;
+; We start with what to do when a call first comes in.
+;
+exten => s,1,Wait,1 ; Wait a second, just for fun
+exten => s,n,Answer ; Answer the line
+exten => s,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds
+exten => s,n,Set(TIMEOUT(response)=10) ; Set Response Timeout to 10 seconds
+exten => s,n(restart),BackGround(demo-congrats) ; Play a congratulatory message
+exten => s,n(instruct),BackGround(demo-instruct) ; Play some instructions
+exten => s,n,WaitExten ; Wait for an extension to be dialed.
+
+exten => 2,1,BackGround(demo-moreinfo) ; Give some more information.
+exten => 2,n,Goto(s,instruct)
+
+exten => 3,1,Set(LANGUAGE()=fr) ; Set language to french
+exten => 3,n,Goto(s,restart) ; Start with the congratulations
+
+exten => 1000,1,Goto(default,s,1)
+;
+; We also create an example user, 1234, who is on the console and has
+; voicemail, etc.
+;
+exten => 1234,1,Playback(transfer,skip) ; "Please hold while..."
+ ; (but skip if channel is not up)
+exten => 1234,n,Macro(stdexten,1234,${CONSOLE})
+
+exten => 1235,1,Voicemail(u1234) ; Right to voicemail
+
+exten => 1236,1,Dial(Console/dsp) ; Ring forever
+exten => 1236,n,Voicemail(u1234) ; Unless busy
+
+;
+; # for when they're done with the demo
+;
+exten => #,1,Playback(demo-thanks) ; "Thanks for trying the demo"
+exten => #,n,Hangup ; Hang them up.
+
+;
+; A timeout and "invalid extension rule"
+;
+exten => t,1,Goto(#,1) ; If they take too long, give up
+exten => i,1,Playback(invalid) ; "That's not valid, try again"
+
+;
+; Create an extension, 500, for dialing the
+; Asterisk demo.
+;
+exten => 500,1,Playback(demo-abouttotry); Let them know what's going on
+exten => 500,n,Dial(IAX2/guest at misery.digium.com/s at default) ; Call the Asterisk demo
+exten => 500,n,Playback(demo-nogo) ; Couldn't connect to the demo site
+exten => 500,n,Goto(s,6) ; Return to the start over message.
+
+;
+; Create an extension, 600, for evaluating echo latency.
+;
+exten => 600,1,Playback(demo-echotest) ; Let them know what's going on
+exten => 600,n,Echo ; Do the echo test
+exten => 600,n,Playback(demo-echodone) ; Let them know it's over
+exten => 600,n,Goto(s,6) ; Start over
+
+;
+; Give voicemail at extension 8500
+;
+exten => 8500,1,VoicemailMain
+exten => 8500,n,Goto(s,6)
+;
+
More information about the Pkg-voip-commits
mailing list