[asterisk-users] Calling a Macro with arguments in AstApplication/AstApplicationData

Gonzalo Servat gservat at gmail.com
Sat Mar 15 17:25:03 CDT 2008


Hi All,

This question is probably more for the LDAP experienced users/developers as
I'm sure it would work fine if I weren't using LDAP (but I am, and I'm
almost there with the setup!!!).
I've setup an extension with the following:

AstExtension: 210
AstApplication: Macro
AstApplicationData: call-ext,SIP/testuser&IAX2/testuser,210

When I dial this extension, I see the following in the log:

    -- Executing Macro("SIP/testuser-082b11f8",
"call-ext,SIP/testuser&IAX2/testuser,210")
[Mar 15 16:14:06] DEBUG[6060]: pbx.c:2679 pbx_extension_helper: Launching
'Set'
    -- Executing [s at macro-call-ext:1] Set("SIP/testuser-remote-082b11f8",
"LOCAL(arg1)=SIP/testuser&IAX2/testuser") in new stack
[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


.. which means I'm not able to access these arguments inside the Macro :(
FWIW, I've defined this Macro in extensions.ael (not .conf).

Any ideas??

Thanks in advance!
- Gonzalo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080315/c5854fb7/attachment.htm 


More information about the asterisk-users mailing list