[svn-commits] file: branch file/ah r59240 - in /team/file/ah: include/asterisk/ main/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Mar 26 15:57:50 MST 2007


Author: file
Date: Mon Mar 26 17:57:49 2007
New Revision: 59240

URL: http://svn.digium.com/view/asterisk?view=rev&rev=59240
Log:
Definitely need the direction the frame came in from!

Modified:
    team/file/ah/include/asterisk/audiohook.h
    team/file/ah/main/audiohook.c

Modified: team/file/ah/include/asterisk/audiohook.h
URL: http://svn.digium.com/view/asterisk/team/file/ah/include/asterisk/audiohook.h?view=diff&rev=59240&r1=59239&r2=59240
==============================================================================
--- team/file/ah/include/asterisk/audiohook.h (original)
+++ team/file/ah/include/asterisk/audiohook.h Mon Mar 26 17:57:49 2007
@@ -60,11 +60,12 @@
  * \param audiohook Audiohook structure
  * \param chan Channel
  * \param frame Frame of audio to manipulate
+ * \param direction Direction frame came from
  * \return Returns 0 on success, -1 on failure
  * \note An audiohook does not have any reference to a private data structure for manipulate types. It is up to the manipulate callback to store this data
  *       via it's own method. An example would be datastores.
  */
-typedef int (*ast_audiohook_manipulate_callback)(struct ast_audiohook *audiohook, struct ast_channel *chan, struct ast_frame *frame);
+typedef int (*ast_audiohook_manipulate_callback)(struct ast_audiohook *audiohook, struct ast_channel *chan, struct ast_frame *frame, enum ast_audiohook_direction direction);
 
 struct ast_audiohook {
 	ast_mutex_t lock;                                      /*!< Lock that protects the audiohook structure */

Modified: team/file/ah/main/audiohook.c
URL: http://svn.digium.com/view/asterisk/team/file/ah/main/audiohook.c?view=diff&rev=59240&r1=59239&r2=59240
==============================================================================
--- team/file/ah/main/audiohook.c (original)
+++ team/file/ah/main/audiohook.c Mon Mar 26 17:57:49 2007
@@ -435,11 +435,11 @@
 				audiohook->status = AST_AUDIOHOOK_STATUS_DONE;
 				ast_audiohook_unlock(audiohook);
 				/* We basically drop all of our links to the manipulate audiohook and prod it to do it's own destructive things */
-				audiohook->manipulate_callback(audiohook, chan, NULL);
+				audiohook->manipulate_callback(audiohook, chan, NULL, direction);
 				continue;
 			}
 			/* Feed in frame to manipulation */
-			audiohook->manipulate_callback(audiohook, chan, middle_frame);
+			audiohook->manipulate_callback(audiohook, chan, middle_frame, direction);
 			ast_audiohook_unlock(audiohook);
 		}
 		AST_LIST_TRAVERSE_SAFE_END



More information about the svn-commits mailing list