diff options
author | Richard Mudgett <rmudgett@digium.com> | 2011-11-15 20:11:06 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2011-11-15 20:11:06 +0000 |
commit | a86037d9591ee66080c6c4803a984ba26b572992 (patch) | |
tree | 9bb5ce45683acc8b62606604b69424066ee3798e /res | |
parent | bd4f81b51f73e89292149672df0572af5bb4c75f (diff) |
Make FastAGI HANGUP show up in AGI debug output.
* Change from using send() to ast_agi_send() so the HANGUP shows up in the
AGI debug output.
(closes issue ASTERISK-18723)
Reported by: James Van Vleet
Patches:
jira_asterisk_18723_v1.8.patch (license #5621) patch uploaded by rmudgett
........
Merged revisions 345431 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 345432 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@345433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r-- | res/res_agi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 91dea088c..1809c6d5a 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -3501,7 +3501,7 @@ static enum agi_result run_agi(struct ast_channel *chan, char *request, AGI *agi if (pid > -1) { kill(pid, SIGHUP); } else if (agi->fast) { - send(agi->ctrl, "HANGUP\n", 7, 0); + ast_agi_send(agi->fd, chan, "HANGUP\n"); } } } @@ -3616,7 +3616,7 @@ static enum agi_result run_agi(struct ast_channel *chan, char *request, AGI *agi } waitpid(pid, status, WNOHANG); } else if (agi->fast) { - send(agi->ctrl, "HANGUP\n", 7, 0); + ast_agi_send(agi->fd, chan, "HANGUP\n"); } } fclose(readf); |