mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user