mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Warn to use DeadAGI in general on hungup channels if AGI or EAGI is called.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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)
|
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);
|
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 readformat;
|
||||||
int res;
|
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;
|
readformat = chan->readformat;
|
||||||
if (ast_set_read_format(chan, AST_FORMAT_SLINEAR)) {
|
if (ast_set_read_format(chan, AST_FORMAT_SLINEAR)) {
|
||||||
ast_log(LOG_WARNING, "Unable to set channel '%s' to linear mode\n", chan->name);
|
ast_log(LOG_WARNING, "Unable to set channel '%s' to linear mode\n", chan->name);
|
||||||
|
Reference in New Issue
Block a user