[svn-commits] file: branch 1.4 r98317 - /branches/1.4/res/res_agi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jan 11 13:28:30 CST 2008


Author: file
Date: Fri Jan 11 13:28:30 2008
New Revision: 98317

URL: http://svn.digium.com/view/asterisk?view=rev&rev=98317
Log:
If the channel is hungup during RECORD FILE send a result code of -1 to be uniform with everything else.
(closes issue #11743)
Reported by: davevg
Patches:
      res_agi.diff uploaded by davevg (license 209)

Modified:
    branches/1.4/res/res_agi.c

Modified: branches/1.4/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_agi.c?view=diff&rev=98317&r1=98316&r2=98317
==============================================================================
--- branches/1.4/res/res_agi.c (original)
+++ branches/1.4/res/res_agi.c Fri Jan 11 13:28:30 2008
@@ -977,7 +977,7 @@
 			}
 			f = ast_read(chan);
 			if (!f) {
-				fdprintf(agi->fd, "200 result=%d (hangup) endpos=%ld\n", 0, sample_offset);
+				fdprintf(agi->fd, "200 result=%d (hangup) endpos=%ld\n", -1, sample_offset);
 				ast_closestream(fs);
 				if (sildet)
 					ast_dsp_free(sildet);




More information about the svn-commits mailing list