Hi to all,
sorry for my ugly english but I hope to explain my problem.
I’ve created in file extensions-outgoingcall.conf a context call outgoing like this
[outgoing]
exten => _1XX,1,Dial(SIP/9000/${EXTEN},|tT)
exten => _0.,1,NoOp(siamop in outgoing-extensions)
exten => _0.,2,Set(fruit=peach)
exten => _0.,3,Macro(chiama('a','b'))
and a macro in extensions.ael like this
macro chiama( numero, utente) {
NoOp("found");
NoOp(${utente});
NoOp(${numero});
return;
};
When, from my phone, I try to call a number like “0046455555” asterisk correct matches the number but this message appear:
[Sep 22 00:03:21] WARNING[2709]: app_macro.c:246 _macro_exec: No such context 'macro-chiama('1'' for macro 'chiama('1''
So my question is: How can i call a macro created with AEL from a .conf file?
At the moment, the only solution that I found, is to create a context in AEL file, use a goto context name inside outgoingcalls.conf file and call the macro from the context using “&chiama”.
But this can’t be the solution. Any idea?
Thanks in advance