<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/styles/combined.css?spaceKey=AST&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/Asterisk+10+Application_DeadAGI">Asterisk 10 Application_DeadAGI</a></h2>
<h4>Page <b>added</b> by <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
</h4>
<br/>
<div class="notificationGreySide">
<h1><a name="Asterisk10Application_DeadAGI-DeadAGI%28%29"></a>DeadAGI()</h1>
<h3><a name="Asterisk10Application_DeadAGI-Synopsis"></a>Synopsis</h3>
<p>Executes AGI on a hungup channel.</p>
<h3><a name="Asterisk10Application_DeadAGI-Description"></a>Description</h3>
<p>Executes an Asterisk Gateway Interface compliant program on a channel. AGI allows Asterisk to launch external programs written in any language to control a telephony channel, play audio, read DTMF digits, etc. by communicating with the AGI protocol on <b>stdin</b> and <b>stdout</b>. As of <tt>1.6.0</tt>, this channel will not stop dialplan execution on hangup inside of this application. Dialplan execution will continue normally, even upon hangup until the AGI application signals a desire to stop (either by exiting or, in the case of a net script, by closing the connection). A locally executed AGI script will receive SIGHUP on hangup from the channel except when using DeadAGI. A fast AGI server will correspondingly receive a HANGUP inline with the command dialog. Both of theses signals may be disabled by setting the Executes an Asterisk Gateway Interface compliant program on a channel. AGI allows Asterisk to launch external programs written in any language to control a telephony channel, play audio, read DTMF digits, etc. by communicating with the AGI protocol on <tt>None</tt> - <tt>AGISIGHUP</tt> channel variable to <tt>no</tt> before executing the AGI application. </p>
<p>Use the CLI command <tt>agi show commands</tt> to list available agi commands. </p>
<p>This application sets the following channel variable upon completion: </p>
<ul>
        <li><tt>AGISTATUS</tt> - The status of the attempt to the run the AGI script text string, one of:
        <ul>
                <li><tt>SUCCESS</tt></li>
                <li><tt>FAILURE</tt></li>
                <li><tt>NOTFOUND</tt></li>
                <li><tt>HANGUP</tt></li>
        </ul>
        </li>
</ul>
<h3><a name="Asterisk10Application_DeadAGI-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>DeadAGI(command[,arg1[,arg2]])</pre>
</div></div>
<h5><a name="Asterisk10Application_DeadAGI-Arguments"></a>Arguments</h5>
<ul>
        <li><tt>command</tt></li>
        <li><tt>args</tt>
        <ul>
                <li><tt>arg1</tt></li>
                <li><tt>arg2</tt></li>
        </ul>
        </li>
</ul>
<h3><a name="Asterisk10Application_DeadAGI-SeeAlso"></a>See Also</h3>
<p><a href="/wiki/display/AST/Asterisk+10+Application_AGI" title="Asterisk 10 Application_AGI">Asterisk 10 Application_AGI</a><br/>
<a href="/wiki/display/AST/Asterisk+10+Application_EAGI" title="Asterisk 10 Application_EAGI">Asterisk 10 Application_EAGI</a></p>
<h3><a name="Asterisk10Application_DeadAGI-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk version SVN-branch-10-r340810.</p>
</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/Asterisk+10+Application_DeadAGI">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Application_DeadAGI?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>