[asterisk-users] Using macros in extensions.lua?

Dennis Guse dennis.guse at alumni.tu-berlin.de
Fri Jun 6 02:48:34 CDT 2014


I have defined a dialplan in lua and now would like to use "dial" with the
macro M to implement some logic, when the callee-channel gets created.

Working old style would be (extensions.conf)

exten => _X,1,dial(SIP/1,,M(mymacro^parameter))

exten => s,1,verbose(${ARG1})

How to implement the same functionality using pbx_lua?

Details: Asterisk 11.7 on Ubuntu 14.04

Kind regards

Dennis Guse

Quality and Usability Lab
Telekom Innovation Laboratories
TU Berlin
Ernst-Reuter-Platz 7
D-10587 Berlin, Germany
Tel: +49 30 8353 58874
Fax: +49 30 8353 58409
E-mail: dennis.guse at telekom.de
Web: www.qu.tlabs.tu-berlin.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140606/0612e3b8/attachment.html>

More information about the asterisk-users mailing list