On Sat, Mar 15, 2008 at 8:25 PM, Gonzalo Servat <<a href="mailto:gservat@gmail.com">gservat@gmail.com</a>> 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&IAX2/testuser,210<br><br>When I dial this extension, I see the following in the log:<br><br> -- Executing Macro("SIP/testuser-082b11f8", "call-ext,SIP/testuser&IAX2/testuser,210")<br>
[Mar 15 16:14:06] DEBUG[6060]: pbx.c:2679 pbx_extension_helper: Launching 'Set'<br> -- Executing [s@macro-call-ext:1] Set("SIP/testuser-remote-082b11f8", "LOCAL(arg1)=SIP/testuser&IAX2/testuser") 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't within a Gosub routine </blockquote><div><br>Found a solution to this so I'm replying to myself just incase anyone else runs into this problem. Probably not the best solution but it works. Since I'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>