<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">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.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Working old style would be (extensions.conf)</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">[default]</div><div style="font-family:arial,sans-serif;font-size:13px">exten => _X,1,dial(SIP/1,,M(mymacro^parameter))</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">[macro-mymacro]</div><div style="font-family:arial,sans-serif;font-size:13px">exten => s,1,verbose(${ARG1})</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">How to implement the same functionality using pbx_lua?</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">

Details: Asterisk 11.7 on Ubuntu 14.04</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><span lang="DE" style="font-size:10pt;font-family:Arial,sans-serif">Kind regards<br>

<br>Dennis <span class="" style="background-color:rgb(255,255,204)">Guse</span><br></span><span style="font-size:10pt;font-family:Arial,sans-serif"><br>Quality and Usability Lab<br>Telekom Innovation Laboratories<br>TU Berlin<br>

Ernst-Reuter-Platz 7<br>D-10587 Berlin, Germany<br>Tel: <a value="+4930835358874" style="color:rgb(34,34,34)">+49 30 8353 58874</a><br>Fax: <a value="+4930835358409" style="color:rgb(34,34,34)">+49 30 8353 58409</a><br>E-mail: <a href="mailto:dennis.guse@telekom.de" target="_blank"><span style="color:blue">dennis.<span class="" style="background-color:rgb(255,255,204);color:rgb(34,34,34)">guse</span>@telekom.de</span></a><br>

Web: <a href="http://www.qu.tlabs.tu-berlin.de/" target="_blank"><span style="color:blue">www.qu.tlabs.tu-berlin.de</span></a></span></div>
</div>