[asterisk-scf-commits] asterisk-scf/release/slice.git branch "default_bridge_listeners" created.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Dec 9 08:40:04 CST 2010


branch "default_bridge_listeners" has been created
        at  7f7f93e2d5d591d779423a5d16b0b37b9f8b43c3 (commit)

- Log -----------------------------------------------------------------
commit 7f7f93e2d5d591d779423a5d16b0b37b9f8b43c3
Author: Brent Eagles <beagles at digium.com>
Date:   Thu Dec 9 11:01:23 2010 -0330

    Adding default bridge listener support.

diff --git a/SessionCommunications/SessionCommunicationsIf.ice b/SessionCommunications/SessionCommunicationsIf.ice
index 92a7642..5ac9900 100644
--- a/SessionCommunications/SessionCommunicationsIf.ice
+++ b/SessionCommunications/SessionCommunicationsIf.ice
@@ -512,6 +512,13 @@ module V1
      */
     interface BridgeListener;
 
+    /** 
+     * Exception thrown when a "null" proxy is passed in where it is invalid to do so.
+     **/
+    exception NullProxyException
+    {
+    };
+
     /**
      * Bridge object manages the association of multiple sessions in the process
      * of communicating with each other.
@@ -568,20 +575,26 @@ module V1
 	* of future changes to the bridge as they occur.
 	*
 	* @param listener A reference to a BridgeListener object.
+        *
+        * @throws NullProxyException if the listener proxy is a null proxy.
 	*
 	* @see BridgeListener
 	*/
-       void addListener(BridgeListener* listener);
+       void addListener(BridgeListener* listener)
+           throws NullProxyException;
 
        /**
 	* Removes a listener object from the bridge. The listen will cease receiving
 	* notifications of changes to the bridge.
 	*
 	* @param listener A reference to the listener object to be removed.
+        *
+        * @throws NullProxyException if the listener proxy is a null proxy.
 	*
 	* @see BridgeListener
 	*/
-       void removeListener(BridgeListener* listener);
+       void removeListener(BridgeListener* listener)
+           throws NullProxyException;
 
        /**
 	* Replaces a session that is on the bridge with another session. Useful for transfers, etc.
@@ -661,8 +674,12 @@ module V1
 	* Method called to add a listener to the bridge manager.
 	*
 	* @param listener A proxy to the bridge manager listener to add.
+        *
+        * @throws NullProxyException if the listener proxy is a null proxy.
+        *
 	*/
-	void addListener(BridgeManagerListener* listener);
+	void addListener(BridgeManagerListener* listener)
+            throws NullProxyException;
 
 	/**
 	 * Method called to create a bridge.
@@ -672,15 +689,47 @@ module V1
 	 * @param listener A proxy to a bridge listener to be added to the newly created ridge.
 	 *
 	 * @return Bridge* Returns a proxy to the newly created bridge.
+         *
+         * @throws NullProxyException if the listener proxy is a null proxy.
+         *
 	 */
-	Bridge* createBridge(SessionSeq sessions, BridgeListener* listener);
+	Bridge* createBridge(SessionSeq sessions, BridgeListener* listener)
+            throws NullProxyException;
 
 	/**
 	 * Method called to remove a listener from the bridge manager.
 	 *
 	 * @param listener A proxy to the bridge manager listener to remove.
+         *
+         * @throws NullProxyException if the listener proxy is a null proxy.
+         *
 	 */
-	void removeListener(BridgeManagerListener* listener);
+	void removeListener(BridgeManagerListener* listener)
+            throws NullProxyException;
+
+       /**
+        * Method called to add a listener to the list of bridge listeners that
+        * will automatically be added to every bridge that is created.
+	*
+	* @param listener A proxy to the bridge listener to add.
+        *
+        * @throws NullProxyException if the listener proxy is a null proxy.
+        *
+	*/
+        void addDefaultBridgeListener(BridgeListener* listener)
+            throws NullProxyException;
+
+       /**
+        * Method called to remove a listener to the list of bridge listeners that
+        * will automatically be added to every bridge that is created.
+	*
+	* @param listener A proxy to the bridge listener to remove.
+        *
+        * @throws NullProxyException if the listener proxy is a null proxy.
+        *
+	*/
+        void removeDefaultBridgeListener(BridgeListener* listener)
+            throws NullProxyException;
 
 	/**
 	 * Method called to get a list of bridges currently active in the bridge manager.

-----------------------------------------------------------------------


-- 
asterisk-scf/release/slice.git



More information about the asterisk-scf-commits mailing list