[asterisk-users] Using Dial M option from extensions.ael [SOLVED]
Olivier
oza-4h07 at myamail.com
Tue Dec 2 04:22:49 CST 2008
2008/12/2 Philipp Kempgen <philipp.kempgen at amooma.de>
> Philipp Kempgen schrieb:
> > 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.
>
> ... instead of M.
>
> > 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
> --
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
It works !
I'll take time to edit voip-info.org accordingly ...
Thanks !!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081202/5eb7da2a/attachment.htm
More information about the asterisk-users
mailing list