<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt"><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;">Fine, I'll call it ${LoopVariable} then... how's that going to fix the problem?<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Steve Edwards <asterisk.org@sedwards.com><br>To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com><br>Sent: Friday, July 11, 2008 8:43:47 AM<br>Subject: Re: [asterisk-users] Asterisk as an IVR solution<br><br>
On Fri, 11 Jul 2008, Douglas Garstang wrote:<br><br>> Ugh. Yes, the variables are local to the current channel. However, they <br>> are global to the entire dial plan within the current channel. I have <br>> stepped on myself many times because I've had a loop counter called $i <br>> for example, jumped somewhere else within that loop, reused the same <br>> variable name, $i, and screwed up my logic.<br><br>Ugh indeed. While I sympathize with your local/global name space issues, <br>you lose credibility with your false economy.<br><br>IMNSHO, anybody who uses a single [common] letter for a variable deserves <br>a bump in the temperature when they reach their final resting place :)<br><br>For example, out of the 157 applications on one of my Asterisk servers, 76 <br>contain the letter "l."<br><br>(absolutetimeout, adsiprog, agentcallbacklogin, agentlogin, <br>agentmonitoroutgoing, agi, alarmreceiver, appendcdruserfield, <br>authenticate,
changemonitor, chanisavail, congestion, datetime, deadagi, <br>dial, dictate, digittimeout, directory, disa, dundilookup, eagi, endwhile, <br>execif, execiftime, externalivr, festival, getcpeid, gosubif, gotoif, <br>gotoiftime, hasnewvoicemail, hasvoicemail, iax2provision, ices, importvar, <br>lookupblacklist, lookupcidname, macroexit, macroif, mailboxexists, <br>meetmeadmin, milliwatt, mixmonitor, monitor, pickup, privacymanager, <br>readfile, realtime, realtimeupdate, responsetimeout, retrydial, ringing, <br>saydigits, sayphonetic, sayunixtime, sendimage, setcallerid, <br>setcdruserfield, setcidname, setcidnum, setrdnis, settransfercapabilit, <br>sipaddheader, sipdtmfmode, sipgetheader, stopmonitor, testclient, <br>txtcidname, vmauthenticate, voicemail, voicemailmain, wait, waitexten, <br>waitforring, waitforsilence, while)<br><br>Surely you can come up with a name slightly more descriptive -- maybe <br>"idx?"<br><br>Take pity on the next sod that has
to plod through your dialplan. The <br>millisecond you "spend" typing a more meaningful name will be returned to <br>you (or your employer) a millionfold.<br><br>> ----- Original Message ----<br>> From: Tilghman Lesher <<a ymailto="mailto:tilghman@mail.jeffandtilghman.com" href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.com</a>><br>> To: Asterisk Users Mailing List - Non-Commercial Discussion <<a ymailto="mailto:asterisk-users@lists.digium.com" href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>> Sent: Friday, July 11, 2008 7:36:54 AM<br>> Subject: Re: [asterisk-users] Asterisk as an IVR solution<br>><br>> On Friday 11 July 2008 09:22:25 Douglas Garstang wrote:<br>>> Yes, and by doing that your compounding the fact that all your variables<br>>> are global.<br>><br>> No, his variables are local to the channel he's using. Global
variables are<br>> a completely different beast.<br>><br>> -- <br>> Tilghman<br>><br>> _______________________________________________<br>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>><br>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>> Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>><br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>><br>><br>><br>><br><br>Thanks in advance,<br>------------------------------------------------------------------------<br>Steve Edwards <a ymailto="mailto:sedwards@sedwards.com"
href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>Newline Fax: +1-760-731-3000<br><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br><br>AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></div></div><br>
</body></html>