[asterisk-scf-commits] asterisk-scf/release/slice.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Aug 1 17:37:41 CDT 2011
branch "master" has been updated
via 8774a9fee9cebfb35ae9cae57c578ac2047f75af (commit)
from 1b9a00c4ab6cd1deba0f1b5a7065c65fb0e77c7b (commit)
Summary of changes:
slice/AsteriskSCF/Media/MediaIf.ice | 40 +++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 8774a9fee9cebfb35ae9cae57c578ac2047f75af
Author: Joshua Colp <jcolp at digium.com>
Date: Mon Aug 1 19:37:33 2011 -0300
Add an interface for establishing direct media connections external to ourselves.
diff --git a/slice/AsteriskSCF/Media/MediaIf.ice b/slice/AsteriskSCF/Media/MediaIf.ice
index b02a21b..f9bb522 100644
--- a/slice/AsteriskSCF/Media/MediaIf.ice
+++ b/slice/AsteriskSCF/Media/MediaIf.ice
@@ -88,6 +88,46 @@ module V1
sequence<Frame> FrameSeq;
/**
+ * Facet name for the direct media connection interface on a session.
+ */
+ const string directMediaConnectionFacet = "directmediaconnection";
+
+ /**
+ * Dictionary for establishing direct media connections. Key is the stream that is to
+ * be directly connected and sink is the sink to directly connect it to.
+ */
+ dictionary<string, StreamSink*> DirectMediaConnectionDict;
+
+ /**
+ * Interface used to establish direct media connections external to Asterisk SCF.
+ */
+ interface DirectMediaConnection
+ {
+ /**
+ * Method used to determine what streams can be directly connected.
+ *
+ * @param connections The direct connections that are to be established.
+ *
+ * @return StringSeq A sequence of streams that can be directly connected.
+ */
+ ["amd"] idempotent Ice::StringSeq checkDirectConnections(DirectMediaConnectionDict connections);
+
+ /**
+ * Method used to establish direct media connections external to Asterisk SCF.
+ *
+ * @param connections The direct connections that are to be established.
+ */
+ ["amd"] void connectStreams(DirectMediaConnectionDict connections);
+
+ /**
+ * Method used to tear down direct media connections.
+ *
+ * @param streams A sequence of streams that should no longer be directly connected.
+ */
+ ["amd"] void disconnectStreams(Ice::StringSeq streams);
+ };
+
+ /**
* States that a stream can be in.
*/
enum StreamState
-----------------------------------------------------------------------
--
asterisk-scf/release/slice.git
More information about the asterisk-scf-commits
mailing list