[asterisk-commits] file: branch file/bridging r79206 - in /team/file/bridging: include/asterisk/...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 13 09:42:03 CDT 2007
Author: file
Date: Mon Aug 13 09:42:02 2007
New Revision: 79206
URL: http://svn.digium.com/view/asterisk?view=rev&rev=79206
Log:
Add a placeholder state and function for channel swapping.
Modified:
team/file/bridging/include/asterisk/bridging.h
team/file/bridging/main/bridging.c
Modified: team/file/bridging/include/asterisk/bridging.h
URL: http://svn.digium.com/view/asterisk/team/file/bridging/include/asterisk/bridging.h?view=diff&rev=79206&r1=79205&r2=79206
==============================================================================
--- team/file/bridging/include/asterisk/bridging.h (original)
+++ team/file/bridging/include/asterisk/bridging.h Mon Aug 13 09:42:02 2007
@@ -54,6 +54,7 @@
AST_BRIDGE_CHANNEL_STATE_END, /*! Bridged channel ended itself */
AST_BRIDGE_CHANNEL_STATE_HANGUP, /*! Bridge requested that this channel be hungup, unless otherwise instructed */
AST_BRIDGE_CHANNEL_STATE_DEPART, /*! Depart from the bridge */
+ AST_BRIDGE_CHANNEL_STATE_SWAP, /*! Channel is being swapped out */
};
/*! \brief Flags used for bridge features */
@@ -174,6 +175,14 @@
*/
void ast_bridge_technology_unsuspend(struct ast_bridge_technology *technology);
+/*! \brief Swap a channel participating in a bridge
+ * \param bridge Bridge channel is involved in
+ * \param chan0 Old channel already in bridge
+ * \param chan1 New channel that will be taking it's place
+ * \return Returns 0 on success, -1 on failure
+ */
+int ast_bridge_swap(struct ast_bridge *bridge, struct ast_channel *chan0, struct ast_channel *chan1);
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
Modified: team/file/bridging/main/bridging.c
URL: http://svn.digium.com/view/asterisk/team/file/bridging/main/bridging.c?view=diff&rev=79206&r1=79205&r2=79206
==============================================================================
--- team/file/bridging/main/bridging.c (original)
+++ team/file/bridging/main/bridging.c Mon Aug 13 09:42:02 2007
@@ -727,3 +727,14 @@
technology->suspended = 0;
return;
}
+
+/*! \brief Swap a channel participating in a bridge
+ * \param bridge Bridge channel is involved in
+ * \param chan0 Old channel already in bridge
+ * \param chan1 New channel that will be taking it's place
+ * \return Returns 0 on success, -1 on failure
+ */
+int ast_bridge_swap(struct ast_bridge *bridge, struct ast_channel *chan0, struct ast_channel *chan1)
+{
+ return -1;
+}
More information about the asterisk-commits
mailing list