[asterisk-users] Using Dial M option from extensions.ael
Philipp Kempgen
philipp.kempgen at amooma.de
Tue Dec 2 04:07:58 CST 2008
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
--
More information about the asterisk-users
mailing list