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.
Surely you where aware that's the type of thing I was talking about. I'd be surprised if you didn't. Doug. ----- Original Message ---- From: Tilghman Lesher <[EMAIL PROTECTED]> To: Asterisk Users Mailing List - Non-Commercial Discussion <[email protected]> Sent: Friday, July 11, 2008 7:36:54 AM Subject: Re: [asterisk-users] Asterisk as an IVR solution On Friday 11 July 2008 09:22:25 Douglas Garstang wrote: > Yes, and by doing that your compounding the fact that all your variables > are global. No, his variables are local to the channel he's using. Global variables are a completely different beast. -- Tilghman _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net 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 -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
