[asterisk-users] Using Dial M option from extensions.ael

Olivier oza-4h07 at myamail.com
Tue Dec 2 03:49:21 CST 2008


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 


More information about the asterisk-users mailing list