Re: [asterisk-users] 99 bottles of beer
I've been working on an X10 component already. It works, but I wish the CMA15 would work correctly in Linux (I know it's suppose to, but for whatever reason the one I have just doesnt.) It's just a little AGI script that I have working with Cepstral that throws http PUTs to the Windows box that has Apache-PHP and the command line app. Yeah, I know. But it wouldnt be this tedious if the CMA15 would appear correctly on my * box. (Oh, did I mention I made a LCARS Web GUI for this as well? :P) Steve Edwards wrote: On Tue, 21 Aug 2007, Russell Bryant wrote: Nice! While we're on the subject of silly but fun dialplan bits, check out my TV remote extension. When I moved a few months ago, there was a while when I couldn't find the wireless keyboard that I usually use as my TV remote to control MythTV. So, I built dialplan so I could use a wireless phone as my remote, instead. The dialplan reads digits from the phone and sends the correct commands to a MythTV network control interface for the frontend application. I posted my tested .conf version and the untested AEL version to the MythTV wiki. The AEL version would probably be prettier with macros, now that I think of it ... http://www.mythtv.org/wiki/index.php/Controlling_MythTV_from_any_phone_using_Asterisk And practical :) Almost every room in my house has a phone -- if I could teach my kids to put them back where they belong. This could easily be extended to recognize which phone was used so it could control the Myth FE in that room. Also, it could/should be extended to control x10 devices as well... To control the tv in this room, press 1. To control a tv in another room, press 2. To control the outside lights, press 3. To control the sprinklers, press 4, ... Thanks in advance, Steve Edwards [EMAIL PROTECTED] Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 ___ --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 ___ --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
Re: [asterisk-users] 99 bottles of beer
Russell Bryant wrote: Steve Murphy wrote: How about this one: from an extensions.conf that someone posted on the internet, I think, and I converted to AEL; I'm sorry, but I can't find the original author. (If anybody can find his post, I'd love to give him credit.) I did test this out, and it works; just put a call to the macro ( guessgame(); ) in an extension in your dialplan Nice! While we're on the subject of silly but fun dialplan bits, check out my TV remote extension. When I moved a few months ago, there was a while when I couldn't find the wireless keyboard that I usually use as my TV remote to control MythTV. So, I built dialplan so I could use a wireless phone as my remote, instead. The dialplan reads digits from the phone and sends the correct commands to a MythTV network control interface for the frontend application. I posted my tested .conf version and the untested AEL version to the MythTV wiki. The AEL version would probably be prettier with macros, now that I think of it ... http://www.mythtv.org/wiki/index.php/Controlling_MythTV_from_any_phone_using_Asterisk Wow... that's just wow. Words fail me. I'm not saying it isn't cool... just... wow. ;) N. ___ --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
Re: [asterisk-users] 99 bottles of beer
SIP wrote: Russell Bryant wrote: Steve Murphy wrote: How about this one: from an extensions.conf that someone posted on the internet, I think, and I converted to AEL; I'm sorry, but I can't find the original author. (If anybody can find his post, I'd love to give him credit.) I did test this out, and it works; just put a call to the macro ( guessgame(); ) in an extension in your dialplan Nice! While we're on the subject of silly but fun dialplan bits, check out my TV remote extension. When I moved a few months ago, there was a while when I couldn't find the wireless keyboard that I usually use as my TV remote to control MythTV. So, I built dialplan so I could use a wireless phone as my remote, instead. The dialplan reads digits from the phone and sends the correct commands to a MythTV network control interface for the frontend application. I posted my tested .conf version and the untested AEL version to the MythTV wiki. The AEL version would probably be prettier with macros, now that I think of it ... http://www.mythtv.org/wiki/index.php/Controlling_MythTV_from_any_phone_using_Asterisk Wow... that's just wow. Words fail me. I'm not saying it isn't cool... just... wow. ;) It's a nerd explosion in your mouth! -Stephen- ___ --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
Re: [asterisk-users] 99 bottles of beer
On Tue, 21 Aug 2007, Russell Bryant wrote: Nice! While we're on the subject of silly but fun dialplan bits, check out my TV remote extension. When I moved a few months ago, there was a while when I couldn't find the wireless keyboard that I usually use as my TV remote to control MythTV. So, I built dialplan so I could use a wireless phone as my remote, instead. The dialplan reads digits from the phone and sends the correct commands to a MythTV network control interface for the frontend application. I posted my tested .conf version and the untested AEL version to the MythTV wiki. The AEL version would probably be prettier with macros, now that I think of it ... http://www.mythtv.org/wiki/index.php/Controlling_MythTV_from_any_phone_using_Asterisk And practical :) Almost every room in my house has a phone -- if I could teach my kids to put them back where they belong. This could easily be extended to recognize which phone was used so it could control the Myth FE in that room. Also, it could/should be extended to control x10 devices as well... To control the tv in this room, press 1. To control a tv in another room, press 2. To control the outside lights, press 3. To control the sprinklers, press 4, ... Thanks in advance, Steve Edwards [EMAIL PROTECTED] Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 ___ --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
Re: [asterisk-users] 99 bottles of beer
Steve Edwards wrote: Almost every room in my house has a phone -- if I could teach my kids to put them back where they belong. This could easily be extended to recognize which phone was used so it could control the Myth FE in that room. Also, it could/should be extended to control x10 devices as well... To control the tv in this room, press 1. To control a tv in another room, press 2. To control the outside lights, press 3. To control the sprinklers, press 4, ... Only in America ... ;) Regards, Philipp Kempgen -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk? - http://www.das-asterisk-buch.de My pick of the month: rfc 2822 3.6.5 Geschäftsführer: Stefan Wintermeyer Handelsregister: Neuwied B 14998 ___ --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
Re: [asterisk-users] 99 bottles of beer
On 8/21/07, Steve Edwards [EMAIL PROTECTED] wrote: To control the tv in this room, press 1. To control a tv in another room, press 2. To control the outside lights, press 3. To control the sprinklers, press 4, ... To control the power bar the Asterisk server is plugged into, press 5 click DAAD! The stupid phone isn't working! -- j. ___ --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
Re: [asterisk-users] 99 bottles of beer
On 8/21/07, Steve Edwards [EMAIL PROTECTED] wrote: To control the tv in this room, press 1. To control a tv in another room, press 2. To control the outside lights, press 3. To control the sprinklers, press 4, ... Before this thread I already had a Firecracker on the server, a fair assortment of lights and the sprinklers are on an X10Pro Irrigation Controller. Damn, now I'm gonna be up all night. - dbc. ___ --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
Re: [asterisk-users] 99 bottles of beer
Steve Murphy wrote: How about this one: from an extensions.conf that someone posted on the internet, I think, and I converted to AEL; I'm sorry, but I can't find the original author. (If anybody can find his post, I'd love to give him credit.) I did test this out, and it works; just put a call to the macro ( guessgame(); ) in an extension in your dialplan Nice! While we're on the subject of silly but fun dialplan bits, check out my TV remote extension. When I moved a few months ago, there was a while when I couldn't find the wireless keyboard that I usually use as my TV remote to control MythTV. So, I built dialplan so I could use a wireless phone as my remote, instead. The dialplan reads digits from the phone and sends the correct commands to a MythTV network control interface for the frontend application. I posted my tested .conf version and the untested AEL version to the MythTV wiki. The AEL version would probably be prettier with macros, now that I think of it ... http://www.mythtv.org/wiki/index.php/Controlling_MythTV_from_any_phone_using_Asterisk -- Russell Bryant Software Engineer Digium, Inc. ___ --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
Re: [asterisk-users] 99 bottles of beer
On Thu, 2007-08-16 at 19:38 -0600, Steve Murphy wrote: On Thu, 2007-08-16 at 07:56 -0400, Russell Bryant wrote: Gordon Henderson wrote: ; *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/ And now, in AEL! (This is untested, I just wanted to see how it would look.) context silly { *99 = { NoOp(99 Bottles of beer on the wall); Answer(); bottles=99; while (${bottles} 0) { NoOp(${bottles} bottles of beer on the wall, ${bottles} bottles of beer); SayNumber(${bottles}); NoOp(Take one down, pass it around); bottles=${bottles} - 1; NoOp(${bottles} bottles of beer on the wall); } NoOp(We're out of beer!); Hangup(); } } Lol, Well done, Russell! How about this one: from an extensions.conf that someone posted on the internet, I think, and I converted to AEL; I'm sorry, but I can't find the original author. (If anybody can find his post, I'd love to give him credit.) I did test this out, and it works; just put a call to the macro ( guessgame(); ) in an extension in your dialplan macro guessgame() { startpoint: while (1) { Playback(guessit/intro); set(GUESS=); GUESS=${EPOCH}%9; Set(TIMEOUT(digit)=3); Set(TIMEOUT(response)=5); while (1) { Read(NUMBER,guessit/input_number,1); Verbose(Got ${NUMBER} from Read); if( ${NUMBER} = * || ${NUMBER} = # || ${NUMBER} = ) { Playback(guessit/thatsnotanumber); } else if (${NUMBER} = ${GUESS}) { Playback(guessit/win); break; // the only way out of this loop! } else if (${NUMBER} ${GUESS}) { Playback(guessit/less); } else if (${NUMBER} ${GUESS}) { Playback(guessit/more); } else /* what other stuff can the user enter than a number, #, nothing, or * ? */ { Playback(guessit/thatsnotanumber); } } /* You get here after a successful guess */ Wait(.5); Read(AGAIN,guessit/playagain,1); if (${AGAIN} != 1) break; } Playback(guessit/goodbye); return; catch t { playback(guessit/goodbye); return; } catch i { playblack(invalid); } } murf ___ --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 Hey murf, here is the link for the credit, http://www.voipphreak.ca/archives/358-Asterisk-Howto-Numbers-Guessing-Game.html its also in the wiki examples. http://www.voip-info.org/wiki/view/AEL+Example+Snippets db ___ --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
Re: [asterisk-users] 99 bottles of beer
I dialed it, but I am still thirsty. ;-) On Thu, 2007-08-16 at 19:38 -0600, Steve Murphy wrote: On Thu, 2007-08-16 at 07:56 -0400, Russell Bryant wrote: Gordon Henderson wrote: ; *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/ And now, in AEL! (This is untested, I just wanted to see how it would look.) context silly { *99 = { NoOp(99 Bottles of beer on the wall); Answer(); bottles=99; while (${bottles} 0) { NoOp(${bottles} bottles of beer on the wall, ${bottles} bottles of beer); SayNumber(${bottles}); NoOp(Take one down, pass it around); bottles=${bottles} - 1; NoOp(${bottles} bottles of beer on the wall); } NoOp(We're out of beer!); Hangup(); } } Lol, Well done, Russell! How about this one: from an extensions.conf that someone posted on the internet, I think, and I converted to AEL; I'm sorry, but I can't find the original author. (If anybody can find his post, I'd love to give him credit.) I did test this out, and it works; just put a call to the macro ( guessgame(); ) in an extension in your dialplan macro guessgame() { startpoint: while (1) { Playback(guessit/intro); set(GUESS=); GUESS=${EPOCH}%9; Set(TIMEOUT(digit)=3); Set(TIMEOUT(response)=5); while (1) { Read(NUMBER,guessit/input_number,1); Verbose(Got ${NUMBER} from Read); if( ${NUMBER} = * || ${NUMBER} = # || ${NUMBER} = ) { Playback(guessit/thatsnotanumber); } else if (${NUMBER} = ${GUESS}) { Playback(guessit/win); break; // the only way out of this loop! } else if (${NUMBER} ${GUESS}) { Playback(guessit/less); } else if (${NUMBER} ${GUESS}) { Playback(guessit/more); } else /* what other stuff can the user enter than a number, #, nothing, or * ? */ { Playback(guessit/thatsnotanumber); } } /* You get here after a successful guess */ Wait(.5); Read(AGAIN,guessit/playagain,1); if (${AGAIN} != 1) break; } Playback(guessit/goodbye); return; catch t { playback(guessit/goodbye); return; } catch i { playblack(invalid); } } murf ___ --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 Hey murf, here is the link for the credit, http://www.voipphreak.ca/archives/358-Asterisk-Howto-Numbers-Guessing-Game.html its also in the wiki examples. http://www.voip-info.org/wiki/view/AEL+Example+Snippets db ___ --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 ___ --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
[asterisk-users] 99 bottles of beer
; *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
Re: [asterisk-users] 99 bottles of beer
DUD! THIS KICKS ASS! (I know I am getting into trouble, but hey! it's already in our PBX!) On Thursday 16 August 2007 11:35, Gordon Henderson wrote: ; *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 ___ --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
Re: [asterisk-users] 99 bottles of beer
On Thu, 16 Aug 2007, Diego Iastrubni wrote: DUD! THIS KICKS ASS! (I know I am getting into trouble, but hey! it's already in our PBX!) Heh... Well I updated it and added some lyrics (and the guys from the website have said they'd put it up!) So if you want to hear a (rather odd!) mix of me Allison, then dial +44 1364 698 225. I started it at 3 as you don't want to hang about all day, I'm sure :) Get the updated code from wget http://www.drogon.net/dsx/extensions.99bottles and if you want my lyrics, then wget http://www.drogon.net/dsx/bottles.tar.bz2 Now back to our scheduled programme ... :) 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
Re: [asterisk-users] 99 bottles of beer
What we really need is for someone to pay Allison and get the lyrics recorded in her voice. ;) BTW, you just wasted about 30 minutes of my time while I looked around that site at the versions written in languages I've used over the years. :) - Brad -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Henderson Sent: Thursday, August 16, 2007 7:08 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] 99 bottles of beer On Thu, 16 Aug 2007, Diego Iastrubni wrote: DUD! THIS KICKS ASS! (I know I am getting into trouble, but hey! it's already in our PBX!) Heh... Well I updated it and added some lyrics (and the guys from the website have said they'd put it up!) So if you want to hear a (rather odd!) mix of me Allison, then dial +44 1364 698 225. I started it at 3 as you don't want to hang about all day, I'm sure :) Get the updated code from wget http://www.drogon.net/dsx/extensions.99bottles and if you want my lyrics, then wget http://www.drogon.net/dsx/bottles.tar.bz2 Now back to our scheduled programme ... :) 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 ___ --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
Re: [asterisk-users] 99 bottles of beer
Gordon Henderson wrote: ; *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/ And now, in AEL! (This is untested, I just wanted to see how it would look.) context silly { *99 = { NoOp(99 Bottles of beer on the wall); Answer(); bottles=99; while (${bottles} 0) { NoOp(${bottles} bottles of beer on the wall, ${bottles} bottles of beer); SayNumber(${bottles}); NoOp(Take one down, pass it around); bottles=${bottles} - 1; NoOp(${bottles} bottles of beer on the wall); } NoOp(We're out of beer!); Hangup(); } } -- Russell Bryant Software Engineer Digium, Inc. ___ --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
Re: [asterisk-users] 99 bottles of beer
Am Donnerstag, den 16.08.2007, 12:08 +0100 schrieb Gordon Henderson: On Thu, 16 Aug 2007, Diego Iastrubni wrote: DUD! THIS KICKS ASS! (I know I am getting into trouble, but hey! it's already in our PBX!) Heh... Well I updated it and added some lyrics (and the guys from the website have said they'd put it up!) So if you want to hear a (rather odd!) mix of me Allison, then dial +44 1364 698 225. I started it at 3 as you don't want to hang about all day, I'm sure :) Somehow it kicked me out after the second time two is mentioned... Whatever, now I know what a All-Europe-Landline flatrate is good for ;-) BR Anselm ___ --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
Re: [asterisk-users] 99 bottles of beer
On Thu, 2007-08-16 at 07:56 -0400, Russell Bryant wrote: Gordon Henderson wrote: ; *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/ And now, in AEL! (This is untested, I just wanted to see how it would look.) context silly { *99 = { NoOp(99 Bottles of beer on the wall); Answer(); bottles=99; while (${bottles} 0) { NoOp(${bottles} bottles of beer on the wall, ${bottles} bottles of beer); SayNumber(${bottles}); NoOp(Take one down, pass it around); bottles=${bottles} - 1; NoOp(${bottles} bottles of beer on the wall); } NoOp(We're out of beer!); Hangup(); } } Lol, Well done, Russell! How about this one: from an extensions.conf that someone posted on the internet, I think, and I converted to AEL; I'm sorry, but I can't find the original author. (If anybody can find his post, I'd love to give him credit.) I did test this out, and it works; just put a call to the macro ( guessgame(); ) in an extension in your dialplan macro guessgame() { startpoint: while (1) { Playback(guessit/intro); set(GUESS=); GUESS=${EPOCH}%9; Set(TIMEOUT(digit)=3); Set(TIMEOUT(response)=5); while (1) { Read(NUMBER,guessit/input_number,1); Verbose(Got ${NUMBER} from Read); if( ${NUMBER} = * || ${NUMBER} = # || ${NUMBER} = ) { Playback(guessit/thatsnotanumber); } else if (${NUMBER} = ${GUESS}) { Playback(guessit/win); break; // the only way out of this loop! } else if (${NUMBER} ${GUESS}) { Playback(guessit/less); } else if (${NUMBER} ${GUESS}) { Playback(guessit/more); } else /* what other stuff can the user enter than a number, #, nothing, or * ? */ { Playback(guessit/thatsnotanumber); } } /* You get here after a successful guess */ Wait(.5); Read(AGAIN,guessit/playagain,1); if (${AGAIN} != 1) break; } Playback(guessit/goodbye); return; catch t { playback(guessit/goodbye); return; } catch i { playblack(invalid); } } murf smime.p7s Description: S/MIME cryptographic signature ___ --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