; *99:
;       99 bottles of beer on the wall.

exten => *99,1,Noop(99 Bottles of beer on the wall)
exten => *99,n,Answer()
exten => *99,n,Set(bottles=99)
exten => *99,n(loop),Noop(There are ${bottles} bottles of beer on the wall)
exten => *99,n,SayNumber(${bottles})
exten => *99,n,Noop(Take one done and pass it round and there's)
exten => *99,n,Set(bottles=$[${bottles}-1])
exten => *99,n,Noop(${bottles} bottles of beer on the wall)
exten => *99,n,SayNumber(${bottles})
exten => *99,n,GotoIf($["${bottles}" > "0"]?loop)
exten => *99,n,Noop(We're out of beer!)
exten => *99,n,Hangup()

Too much dial plan mashing this morning and I rememberd this site:

   http://99-bottles-of-beer.net/

Gordon

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to