Hi, How can you use Dial application M(x) option from extensions.ael ? (As a reminder, this M(x) executes macro x when Dial called party answers). It seems to me that asterisk keeps looking for this macro in extensions.conf and not in extensions.ael. I tried both (and variations of those with ^ instead of ,) : Dial(Local/${EXTEN:1},,M(mymacro(${EXTEN})); Dial(Local/${EXTEN:1},,M(&mymacro,${EXTEN})); both lead to unexpected results: macro_exec: No such context 'macro-mymacro' for macro 'mymacro' As a workaround, I could write my macro in extensions.conf, but ... Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081202/e07d0608/attachment.htm
Philipp Kempgen
2008-Dec-02 10:07 UTC
[asterisk-users] Using Dial M option from extensions.ael
Olivier schrieb:> How can you use Dial application M(x) option from extensions.ael ? > (As a reminder, this M(x) executes macro x when Dial called party answers). > > It seems to me that asterisk keeps looking for this macro in extensions.conf > and not in extensions.ael. > I tried both (and variations of those with ^ instead of ,) : > Dial(Local/${EXTEN:1},,M(mymacro(${EXTEN})); > Dial(Local/${EXTEN:1},,M(&mymacro,${EXTEN})); > > both lead to unexpected results: > macro_exec: No such context 'macro-mymacro' for macro 'mymacro'I'd say use the U option instead of G. AEL macros are converted to Gosub routines, not Macros. Philipp Kempgen -- http://www.das-asterisk-buch.de - http://www.the-asterisk-book.com Amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 --