<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2160/1/7/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Interacting+with+Asterisk">Interacting with Asterisk</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://wiki.asterisk.org/wiki/display/~mnicholson">Matthew Nicholson</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <p>Interaction with is done through a series of predefined objects provided by pbx_lua. The <tt>app</tt> table is used to access dialplan applications. Any asterisk application can be accessed and executed as if it were a function attached to the <tt>app</tt> table. Dialplan variables and functions are accessed and executed via the <tt>channel</tt> table.</p>

<h2><a name="InteractingwithAsterisk-DialplanApplications"></a>Dialplan Applications</h2>

<div class="error"><span class="error">newcode: Invalid value specified for parameter lang</span> </div>
<p>function </p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">h2. Channel Variables

{code:title=extensions.lua}</pre>
</div></div>

<h3><a name="InteractingwithAsterisk-DialplanFunctions"></a>Dialplan Functions</h3>

<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>extensions.lua</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false"></pre>
</div></div>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Interacting+with+Asterisk">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Interacting+with+Asterisk?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>