[asterisk-users] Macro inside macro

Gonzalo Servat gservat at gmail.com
Sun Aug 13 10:53:44 MST 2006


On 8/13/06, Attilla De Groot <mail at youmeandvoip.nl> wrote:
[..snip..]
> Sorry, didn't thought it was relevant, since the entire macro gets
> executed, but here it is.
>
> ;recording
> exten => _*22*XXX,1,Macro(record,conference,${EXTEN:4))

I think what you probably want is:

exten => _*22*X.,1,Macro(record,conference,${EXTEN:4})

> exten => _*23*.,1,Macro(record|dialout|31455200025|SIP/${EXTEN:4}
> @voipbuster)

If you have _*23*., it means it will match *23**** as well as
*23*****************, but not *23*123456 which is probably what you
want. Try:

exten => _*23*X.,1,Macro(record|dialout|31455200025|SIP/${EXTEN:4}@voipbuster)

Also, from memory, the "h" extension gets executed from the main
context. After making the above changes, try adding this:

exten => _*23*X.,h,System(/etc/asterisk/mail.sh mail at youmeandvoip.nl
${CALLFILENAME} &)

.. and remove the "h" extension from macro-record.

Let me know if the above helps.

Regards,
Gonzalo.



More information about the asterisk-users mailing list