[asterisk-commits] file: branch file/ah r59241 - /team/file/ah/main/audiohook.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Mar 26 16:27:53 MST 2007


Author: file
Date: Mon Mar 26 18:27:52 2007
New Revision: 59241

URL: http://svn.digium.com/view/asterisk?view=rev&rev=59241
Log:
No wonder func_volume wasn't working... the manipulator wasn't getting added to the list!

Modified:
    team/file/ah/main/audiohook.c

Modified: team/file/ah/main/audiohook.c
URL: http://svn.digium.com/view/asterisk/team/file/ah/main/audiohook.c?view=diff&rev=59241&r1=59240&r2=59241
==============================================================================
--- team/file/ah/main/audiohook.c (original)
+++ team/file/ah/main/audiohook.c Mon Mar 26 18:27:52 2007
@@ -268,6 +268,7 @@
 		}
 		AST_LIST_HEAD_INIT_NOLOCK(&chan->audiohooks->spy_list);
 		AST_LIST_HEAD_INIT_NOLOCK(&chan->audiohooks->whisper_list);
+		AST_LIST_HEAD_INIT_NOLOCK(&chan->audiohooks->manipulate_list);
 	}
 
 	/* Drop into respective list */
@@ -275,6 +276,8 @@
 		AST_LIST_INSERT_TAIL(&chan->audiohooks->spy_list, audiohook, list);
 	else if (audiohook->type == AST_AUDIOHOOK_TYPE_WHISPER)
 		AST_LIST_INSERT_TAIL(&chan->audiohooks->whisper_list, audiohook, list);
+	else if (audiohook->type == AST_AUDIOHOOK_TYPE_MANIPULATE)
+		AST_LIST_INSERT_TAIL(&chan->audiohooks->manipulate_list, audiohook, list);
 
 	/* Change status over to running since it is now attached */
 	audiohook->status = AST_AUDIOHOOK_STATUS_RUNNING;
@@ -336,8 +339,8 @@
 		ast_mutex_lock(&audiohook->lock);
 		AST_LIST_REMOVE_CURRENT(&audiohook_list->manipulate_list, list);
 		audiohook->status = AST_AUDIOHOOK_STATUS_DONE;
-		ast_cond_signal(&audiohook->trigger);
 		ast_audiohook_unlock(audiohook);
+		audiohook->manipulate_callback(audiohook, NULL, NULL, 0);
 	}
 	AST_LIST_TRAVERSE_SAFE_END
 



More information about the asterisk-commits mailing list