On Sat, Mar 15, 2008 at 8:25 PM, Gonzalo Servat &lt;<a href="mailto:gservat@gmail.com">gservat@gmail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
[..snip..]<br><br>AstExtension: 210<br>AstApplication: Macro<br>AstApplicationData: call-ext,SIP/testuser&amp;IAX2/testuser,210<br><br>When I dial this extension, I see the following in the log:<br><br>&nbsp;&nbsp;&nbsp; -- Executing Macro(&quot;SIP/testuser-082b11f8&quot;, &quot;call-ext,SIP/testuser&amp;IAX2/testuser,210&quot;)<br>

[Mar 15 16:14:06] DEBUG[6060]: pbx.c:2679 pbx_extension_helper: Launching &#39;Set&#39;<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-call-ext:1] Set(&quot;SIP/testuser-remote-082b11f8&quot;, &quot;LOCAL(arg1)=SIP/testuser&amp;IAX2/testuser&quot;) in new stack<br>

[Mar 15 16:14:06] ERROR[6060]: app_stack.c:370 local_write: Tried to set LOCAL(arg1), but we aren&#39;t within a Gosub routine&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</blockquote><div><br>Found a solution to this so I&#39;m replying to myself just incase anyone else runs into this problem. Probably not the best solution but it works. Since I&#39;m using AEL, pbx_ael creates the macro for me in the dialplan and it automatically adds:<br>
<br>Set(LOCAL(argument)=value);<br><br>.. for every macro argument. Turns out I can just use ${ARG1} and ${ARG2} (etc) in the macro itself and it works fine!<br><br>Best regards,<br>Gonzalo</div></div>