<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 &lt;asterisk.org@sedwards.com&gt;<br>To: Asterisk Users Mailing List - Non-Commercial Discussion &lt;asterisk-users@lists.digium.com&gt;<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>&gt; Ugh. Yes, the variables are local to the current channel. However, they <br>&gt; are global to the entire dial plan within the current channel. I have <br>&gt; stepped on myself many times because I've had a loop counter called $i <br>&gt; for example, jumped somewhere else within that loop, reused the same <br>&gt; 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>&gt; ----- Original Message ----<br>&gt; From: Tilghman Lesher &lt;<a ymailto="mailto:tilghman@mail.jeffandtilghman.com" href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.com</a>&gt;<br>&gt; To: Asterisk Users Mailing List - Non-Commercial Discussion &lt;<a ymailto="mailto:asterisk-users@lists.digium.com" href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>&gt;<br>&gt; Sent: Friday, July 11, 2008 7:36:54 AM<br>&gt; Subject: Re: [asterisk-users] Asterisk as an IVR solution<br>&gt;<br>&gt; On Friday 11 July 2008 09:22:25 Douglas Garstang wrote:<br>&gt;&gt; Yes, and by doing that your compounding the fact that all your variables<br>&gt;&gt; are global.<br>&gt;<br>&gt; No, his variables are local to the channel he's using.&nbsp; Global
 variables are<br>&gt; a completely different beast.<br>&gt;<br>&gt; -- <br>&gt; Tilghman<br>&gt;<br>&gt; _______________________________________________<br>&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>&gt;<br>&gt; AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>&gt; Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>&gt;<br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt;<br>&gt;<br>&gt;<br>&gt;<br><br>Thanks in advance,<br>------------------------------------------------------------------------<br>Steve Edwards&nbsp; &nbsp; &nbsp; <a ymailto="mailto:sedwards@sedwards.com"
 href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a>&nbsp; &nbsp; &nbsp; Voice: +1-760-468-3867 PST<br>Newline&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  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>&nbsp;  <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>