From 0bf94685fdc87543fe2f894928ee48245e527875 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Wed, 16 Jun 2010 18:43:22 +0000 Subject: MSG_OOB flag on HANGUP packet removed. Per Tilghman's request on IRC (#asterisk-bugs). (closes issue #17506) Reported by: brycebaril Tested by: pabelanger, tilghman git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@270936 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_agi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'res/res_agi.c') diff --git a/res/res_agi.c b/res/res_agi.c index 466572423..4f0d17b80 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -814,9 +814,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") signals a desire to stop (either by exiting or, in the case of a net script, by closing the connection). A locally executed AGI script will receive SIGHUP on hangup from the channel except when using DeadAGI. A fast AGI server will - correspondingly receive a HANGUP in OOB data. Both of these signals may be disabled - by setting the AGISIGHUP channel variable to no - before executing the AGI application. + correspondingly receive a HANGUP inline with the command dialog. Both of theses + signals may be disabled by setting the AGISIGHUP channel + variable to no before executing the AGI application. Use the CLI command agi show commands to list available agi commands. This application sets the following channel variable upon completion: @@ -3345,7 +3345,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, MSG_OOB); + send(agi->ctrl, "HANGUP\n", 7, 0); } } } @@ -3443,7 +3443,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, MSG_OOB); + send(agi->ctrl, "HANGUP\n", 7, 0); } } fclose(readf); -- cgit v1.2.3