[Asterisk-cvs] asterisk/apps app_agi.c,1.34,1.35
markster at lists.digium.com
markster at lists.digium.com
Thu Apr 15 16:58:58 CDT 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv2544/apps
Modified Files:
app_agi.c
Log Message:
Warn to use DeadAGI in general on hungup channels if AGI or EAGI is called.
Index: app_agi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_agi.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- app_agi.c 6 Apr 2004 22:17:31 -0000 1.34
+++ app_agi.c 15 Apr 2004 21:01:55 -0000 1.35
@@ -1476,6 +1476,8 @@
static int agi_exec(struct ast_channel *chan, void *data)
{
+ if (chan->_softhangup)
+ ast_log(LOG_WARNING, "If you want to run AGI on hungup channels you should use DeadAGI!\n");
return agi_exec_full(chan, data, 0, 0);
}
@@ -1483,6 +1485,8 @@
{
int readformat;
int res;
+ if (chan->_softhangup)
+ ast_log(LOG_WARNING, "If you want to run AGI on hungup channels you should use DeadAGI!\n");
readformat = chan->readformat;
if (ast_set_read_format(chan, AST_FORMAT_SLINEAR)) {
ast_log(LOG_WARNING, "Unable to set channel '%s' to linear mode\n", chan->name);
More information about the svn-commits
mailing list