[asterisk-commits] file: branch file/audiohooks r78560 - /team/file/audiohooks/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 7 19:00:40 CDT 2007


Author: file
Date: Tue Aug  7 19:00:39 2007
New Revision: 78560

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78560
Log:
Restore ability to stop MixMonitor.

Modified:
    team/file/audiohooks/apps/app_mixmonitor.c

Modified: team/file/audiohooks/apps/app_mixmonitor.c
URL: http://svn.digium.com/view/asterisk/team/file/audiohooks/apps/app_mixmonitor.c?view=diff&rev=78560&r1=78559&r2=78560
==============================================================================
--- team/file/audiohooks/apps/app_mixmonitor.c (original)
+++ team/file/audiohooks/apps/app_mixmonitor.c Tue Aug  7 19:00:39 2007
@@ -358,6 +358,7 @@
 
 static int stop_mixmonitor_exec(struct ast_channel *chan, void *data)
 {
+	ast_audiohook_detach_source(chan, mixmonitor_spy_type);
 	return 0;
 }
 
@@ -373,7 +374,13 @@
 		return RESULT_SUCCESS;
 	}
 
-	ast_channel_unlock(chan);
+	if (!strcasecmp(argv[1], "start")) {
+		mixmonitor_exec(chan, argv[3]);
+		ast_channel_unlock(chan);
+	} else {
+		ast_channel_unlock(chan);
+		ast_audiohook_detach_source(chan, mixmonitor_spy_type);
+	}
 
 	return RESULT_SUCCESS;
 }




More information about the asterisk-commits mailing list