<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;">Well I can tell you that it makes a difficult programming environment, just a little more difficult. It means I can't implement a menu as a single reusable piece of code inside a macro. <br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Tilghman Lesher &lt;tilghman@mail.jeffandtilghman.com&gt;<br>To: Asterisk Users Mailing List - Non-Commercial Discussion &lt;asterisk-users@lists.digium.com&gt;<br>Sent: Thursday, July 10, 2008 6:07:36 PM<br>Subject: Re: [asterisk-users] Asterisk as an IVR solution<br><br>
On Thursday 10 July 2008 19:13:50 Douglas Garstang wrote:<br>&gt; It's a known problem.<br>&gt;<br>&gt; If you call Background() in a macro, then Asterisk will look for the<br>&gt; extensions to jump to in the CALLING Macro/context and NOT the Macro that<br>&gt; the Background() app was called in.<br><br>I wouldn't call it a known problem.&nbsp; It works precisely as it was designed to<br>work.&nbsp; It may not work the way that you want it to, but it works like a Macro:<br>an independent set of instructions, with substitution, that acts as if it were<br>invoked inline with the calling location.&nbsp; That is why Background will match<br>in the context of the calling location: it acts like it never left that<br>original context (and, in a way, it really didn't).<br><br>Subroutines are a different beast, and they are available with the Gosub/<br>Return set of routines in <a target="_blank" href="http://app_stack.so">app_stack.so</a>.<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>&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>