[asterisk-commits] rmudgett: branch 10 r345432 - in /branches/10: ./ res/res_agi.c

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


Author: rmudgett
Date: Tue Nov 15 14:10:00 2011
New Revision: 345432

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

Merged revisions 345431 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/res/res_agi.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

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