Language Asterix
(Asterisk dial-plan)
Date: | 08/16/07 |
Author: | Gordon Henderson |
URL: | http://www.drogon.net/ |
Comments: | 2 |
Info: | http://www.asterisk.org/ |
Score: | (2.92 in 106 votes) |
; *99: ; 99 bottles of beer on the wall. ; ; Until end of 2007 you may dial +44 1364 698 225 ; to see this in action (limited to three bottles) ; Voicefiles available: http://www.drogon.net/dsx/bottles.tar.bz2 exten => *99,1,Noop(99 Bottles of beer on the wall) exten => *99,n,Answer() exten => *99,n,Set(bottles=3) exten => *99,n(loop),Noop(${bottles} bottles of beer on the wall) exten => *99,n,SayNumber(${bottles}) exten => *99,n,Playback(/data/tmp/bottles1) exten => *99,n(loop),Noop(${bottles} bottles of beer) exten => *99,n,SayNumber(${bottles}) exten => *99,n,Playback(/data/tmp/bottles2) exten => *99,n,Noop(Take one done and pass it round and there's) exten => *99,n,Playback(/data/tmp/takebottle) exten => *99,n,Set(bottles=$[${bottles}-1]) exten => *99,n,GotoIf($["${bottles}" = "0"]?nomore) exten => *99,n,Noop(${bottles} bottles of beer on the wall) exten => *99,n,SayNumber(${bottles}) exten => *99,n,Playback(/data/tmp/bottles3) exten => *99,n,Goto(loop) exten => *99,n(nomore),Noop(No more bottles of beer on the wall) exten => *99,n,Playback(/data/tmp/nomore) exten => *99,n,Hangup()
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
Wouter Verhelst said on 08/19/07 15:37:59
It's "Asterisk", not "Asterix". The latter is a small midget from Gallia, often seen together with a certain person whom I'll not call fat.
MOSFET said on 04/20/08 15:38:44
Wouter Verhelst: GREAT :D