[asterisk-commits] dlee: branch dlee/record-controls r395336 - /team/dlee/record-controls/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 24 16:45:26 CDT 2013


Author: dlee
Date: Wed Jul 24 16:45:24 2013
New Revision: 395336

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=395336
Log:
Delete file on DELETE

Modified:
    team/dlee/record-controls/res/res_stasis_recording.c

Modified: team/dlee/record-controls/res/res_stasis_recording.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/record-controls/res/res_stasis_recording.c?view=diff&rev=395336&r1=395335&r2=395336
==============================================================================
--- team/dlee/record-controls/res/res_stasis_recording.c (original)
+++ team/dlee/record-controls/res/res_stasis_recording.c Wed Jul 24 16:45:24 2013
@@ -425,9 +425,12 @@
 
 static int recording_cancel(struct stasis_app_recording *recording)
 {
+	int res = 0;
 	recording->state = STASIS_APP_RECORDING_STATE_CANCELED;
-	return stasis_app_control_queue_control(recording->control,
+	res |= stasis_app_control_queue_control(recording->control,
 		AST_CONTROL_RECORD_CANCEL);
+	res |= ast_filedelete(recording->absolute_name, NULL);
+	return res;
 }
 
 static int recording_stop(struct stasis_app_recording *recording)




More information about the asterisk-commits mailing list