aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_agi.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-15 21:01:55 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-15 21:01:55 +0000
commit23e137cfcdc678bf7ff4a2880e8da80cd3cc2df0 (patch)
tree9ef14b09adea926e6b3c141ca796358ccc4c8e50 /apps/app_agi.c
parente91382c468f737c287e46e0f15d3db278e8246ba (diff)
Warn to use DeadAGI in general on hungup channels if AGI or EAGI is called.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2698 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_agi.c')
-rwxr-xr-xapps/app_agi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_agi.c b/apps/app_agi.c
index 529fbe2e1..d7cd4683e 100755
--- a/apps/app_agi.c
+++ b/apps/app_agi.c
@@ -1476,6 +1476,8 @@ static int agi_exec_full(struct ast_channel *chan, void *data, int enhanced, int
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 @@ static int eagi_exec(struct ast_channel *chan, void *data)
{
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);