[asterisk-commits] branch 1.2 r29973 - /branches/1.2/res/res_agi.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed May 24 09:59:21 MST 2006
Author: kpfleming
Date: Wed May 24 11:59:20 2006
New Revision: 29973
URL: http://svn.digium.com/view/asterisk?rev=29973&view=rev
Log:
support video recording via AGI 'RECORD FILE' command (issue #7068)
Modified:
branches/1.2/res/res_agi.c
Modified: branches/1.2/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/res/res_agi.c?rev=29973&r1=29972&r2=29973&view=diff
==============================================================================
--- branches/1.2/res/res_agi.c (original)
+++ branches/1.2/res/res_agi.c Wed May 24 11:59:20 2006
@@ -941,6 +941,9 @@
return RESULT_FAILURE;
}
+ /* Request a video update */
+ ast_indicate(chan, AST_CONTROL_VIDUPDATE);
+
chan->stream = fs;
ast_applystream(chan,fs);
/* really should have checks */
@@ -1004,6 +1007,9 @@
}
}
break;
+ case AST_FRAME_VIDEO:
+ ast_writestream(fs, f);
+ break;
}
ast_frfree(f);
if (gotsilence)
More information about the asterisk-commits
mailing list