<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;">Ugh. Yes, the variables are local to the current channel. However, they are global to the entire dial plan within the current channel. I have stepped on myself many times because I've had a loop counter called $i for example, jumped somewhere else within that loop, reused the same variable name, $i, and screwed up my logic.<br><br>Surely you where aware that's the type of thing I was talking about. I'd be surprised if you didn't.<br><br>Doug.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Tilghman Lesher <tilghman@mail.jeffandtilghman.com><br>To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users@lists.digium.com><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></div></div></div><br>
</body></html>