[asterisk-commits] branch 1.2 r11778 - /branches/1.2/apps/app_mixmonitor.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Mar 4 04:45:38 MST 2006


Author: bweschke
Date: Sat Mar  4 05:45:37 2006
New Revision: 11778

URL: http://svn.digium.com/view/asterisk?rev=11778&view=rev
Log:
 Substitute variables in the post_process string (if it exists) before those variables could possibly disappear (channel hangup) #6462


Modified:
    branches/1.2/apps/app_mixmonitor.c

Modified: branches/1.2/apps/app_mixmonitor.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_mixmonitor.c?rev=11778&r1=11777&r2=11778&view=diff
==============================================================================
--- branches/1.2/apps/app_mixmonitor.c (original)
+++ branches/1.2/apps/app_mixmonitor.c Sat Mar  4 05:45:37 2006
@@ -203,6 +203,17 @@
 	if (option_verbose > 1)
 		ast_verbose(VERBOSE_PREFIX_2 "Begin MixMonitor Recording %s\n", name);
 	
+	if (mixmonitor->post_process) {
+		char *p;
+
+		for (p = mixmonitor->post_process; *p ; p++) {
+			if (*p == '^' && *(p+1) == '{') {
+				*p = '$';
+			}
+		}
+		pbx_substitute_variables_helper(mixmonitor->chan, mixmonitor->post_process, post_process, sizeof(post_process) - 1);
+	}
+
 	while (1) {
 		struct ast_frame *next;
 		int write;
@@ -237,17 +248,6 @@
 		ast_mutex_unlock(&spy.lock);
 	}
 	
-	if (mixmonitor->post_process) {
-		char *p;
-
-		for (p = mixmonitor->post_process; *p ; p++) {
-			if (*p == '^' && *(p+1) == '{') {
-				*p = '$';
-			}
-		}
-		pbx_substitute_variables_helper(mixmonitor->chan, mixmonitor->post_process, post_process, sizeof(post_process) - 1);
-	}
-
 	stopmon(mixmonitor->chan, &spy);
 
 	if (option_verbose > 1)



More information about the asterisk-commits mailing list