[asterisk-commits] rmudgett: branch 1.8 r345431 - /branches/1.8/res/res_agi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 15 14:09:05 CST 2011


Author: rmudgett
Date: Tue Nov 15 14:09:02 2011
New Revision: 345431

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=345431
Log:
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

Modified:
    branches/1.8/res/res_agi.c

Modified: branches/1.8/res/res_agi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_agi.c?view=diff&rev=345431&r1=345430&r2=345431
==============================================================================
--- branches/1.8/res/res_agi.c (original)
+++ branches/1.8/res/res_agi.c Tue Nov 15 14:09:02 2011
@@ -3483,7 +3483,7 @@
 				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");
 				}
 			}
 		}
@@ -3598,7 +3598,7 @@
 			}
 			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);




More information about the asterisk-commits mailing list