mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Issue 10035 - handle_exec returns a result inconsistent with all of the other AGI commands
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1103,7 +1103,7 @@ static int handle_exec(struct ast_channel *chan, AGI *agi, int argc, char **argv
|
|||||||
}
|
}
|
||||||
fdprintf(agi->fd, "200 result=%d\n", res);
|
fdprintf(agi->fd, "200 result=%d\n", res);
|
||||||
|
|
||||||
return res;
|
return res >= 0 ? RESULT_SUCCESS : RESULT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int handle_setcallerid(struct ast_channel *chan, AGI *agi, int argc, char **argv)
|
static int handle_setcallerid(struct ast_channel *chan, AGI *agi, int argc, char **argv)
|
||||||
|
Reference in New Issue
Block a user