[hydra-commits] ken.hunt: branch techdemo/ken.hunt/embeddedPythonTest r614 - in /techdemo/tea...

SVN commits to the Hydra project hydra-commits at lists.digium.com
Tue May 11 15:25:38 CDT 2010


Author: ken.hunt
Date: Tue May 11 15:25:38 2010
New Revision: 614

URL: https://origsvn.digium.com/svn-view/hydra?view=rev&rev=614
Log:
testing

Added:
    techdemo/team/ken.hunt/embeddedPythonTest/
    techdemo/team/ken.hunt/embeddedPythonTest/slice/
    techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/
    techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/CMakeLists.txt   (with props)
    techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/ChannelServiceIf.ice   (with props)
    techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/EndpointIf.ice   (with props)
    techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/SignalIf.ice   (with props)
    techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/
    techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/CMakeLists.txt   (with props)
    techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaSinkIf.ice   (with props)
    techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaTranslationIf.ice   (with props)
    techdemo/team/ken.hunt/embeddedPythonTest/slice/RoutingServiceIf.ice   (with props)
    techdemo/team/ken.hunt/embeddedPythonTest/slicescripts/
    techdemo/team/ken.hunt/embeddedPythonTest/slicescripts/runslice.bat   (with props)

Added: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/CMakeLists.txt
URL: https://origsvn.digium.com/svn-view/hydra/techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/CMakeLists.txt?view=auto&rev=614
==============================================================================
--- techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/CMakeLists.txt (added)
+++ techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/CMakeLists.txt Tue May 11 15:25:38 2010
@@ -1,0 +1,10 @@
+hydra_compile_slice(SignalIf.ice)
+
+hydra_compile_slice(EndpointIf.ice)
+
+hydra_compile_slice(ChannelServiceIf.ice)
+
+
+
+
+

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/CMakeLists.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/ChannelServiceIf.ice
URL: https://origsvn.digium.com/svn-view/hydra/techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/ChannelServiceIf.ice?view=auto&rev=614
==============================================================================
--- techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/ChannelServiceIf.ice (added)
+++ techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/ChannelServiceIf.ice Tue May 11 15:25:38 2010
@@ -1,0 +1,48 @@
+#pragma once
+
+#include <Channel/SignalIf.ice>
+#include <Channel/EndpointIf.ice>
+
+module Hydra
+{
+   module Channel
+   {
+      exception EndpointNotFound
+      {
+         string requestedEndpoint;
+      };
+      
+      exception EndpointAlreadyRegistered
+      {
+         string endpoint;
+      };
+
+      interface DeviceRegistry
+      {
+         void RegisterDevice(Endpoint *device) throws EndpointAlreadyRegistered; 
+         void DeregisterDevice(string deviceId) throws EndpointNotFound;
+         void ClearDeviceRegistry();
+
+         Endpoint *GetEndpoint(string deviceId) throws EndpointNotFound;
+	     Endpoint *GetEndpointWithFormat(string deviceId, string format) throws EndpointNotFound;
+      };
+
+      interface ChannelStatus
+      {
+         int GetCallsInProgess(string deviceId) throws EndpointNotFound;
+      };
+      
+      interface ChannelStatusExtraV2
+      {
+         int GetTotalCallsProcessed(string deviceId) throws EndpointNotFound;
+      };
+
+      interface ChannelService extends DeviceRegistry, Signal
+      {
+         void OnCallNotice(string deviceId);
+         ChannelStatus *GetStatus();
+      };
+
+   };
+
+};

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/ChannelServiceIf.ice
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/ChannelServiceIf.ice
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/ChannelServiceIf.ice
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/EndpointIf.ice
URL: https://origsvn.digium.com/svn-view/hydra/techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/EndpointIf.ice?view=auto&rev=614
==============================================================================
--- techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/EndpointIf.ice (added)
+++ techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/EndpointIf.ice Tue May 11 15:25:38 2010
@@ -1,0 +1,21 @@
+#pragma once
+
+#include <Media/MediaSinkIf.ice>
+#include <Channel/SignalIf.ice>
+
+module Hydra
+{
+   module Channel
+   {
+      interface Endpoint extends Signal, Media::MediaSink
+      {
+         string GetId();
+         void SetOutgoingMediaSink(Media::MediaSink *outSink);
+	 void RequestMediaFormat(string format);
+	 int GetConcurrentCalls();
+	 int GetCompletedCalls();
+      };
+
+   };
+
+};

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/EndpointIf.ice
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/EndpointIf.ice
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/EndpointIf.ice
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/SignalIf.ice
URL: https://origsvn.digium.com/svn-view/hydra/techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/SignalIf.ice?view=auto&rev=614
==============================================================================
--- techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/SignalIf.ice (added)
+++ techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/SignalIf.ice Tue May 11 15:25:38 2010
@@ -1,0 +1,44 @@
+#pragma once
+
+#include <Media/MediaSinkIf.ice>
+
+module Hydra
+{
+   module Channel
+   {
+      enum InviteResponse
+      {
+         OK,
+         BUSY
+      };
+
+      exception DestinationNotFoundException
+      {
+      };
+
+      exception UnknownSignalSource
+      {
+      };
+      
+      exception RoutingServiceInaccessible
+      {
+      };
+      
+      exception InvalidOperationForState
+      {
+         string details;
+      };
+           
+      interface Signal
+      {
+         void Invite(Signal *source, string destId, string callerId) throws DestinationNotFoundException, UnknownSignalSource, RoutingServiceInaccessible,InvalidOperationForState;
+         void ReplyToInvite(Signal *source, string callerId, InviteResponse response);
+         void Ringing(Signal *source, string callerId);
+         void Bye(Signal *source);  
+         void Redirect(Signal *source, Signal *newReplyTo);
+      };
+
+
+   };
+
+};

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/SignalIf.ice
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/SignalIf.ice
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Channel/SignalIf.ice
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/CMakeLists.txt
URL: https://origsvn.digium.com/svn-view/hydra/techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/CMakeLists.txt?view=auto&rev=614
==============================================================================
--- techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/CMakeLists.txt (added)
+++ techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/CMakeLists.txt Tue May 11 15:25:38 2010
@@ -1,0 +1,3 @@
+hydra_compile_slice(MediaSinkIf.ice)
+
+hydra_compile_slice(MediaTranslationIf.ice)

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/CMakeLists.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaSinkIf.ice
URL: https://origsvn.digium.com/svn-view/hydra/techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaSinkIf.ice?view=auto&rev=614
==============================================================================
--- techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaSinkIf.ice (added)
+++ techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaSinkIf.ice Tue May 11 15:25:38 2010
@@ -1,0 +1,15 @@
+#pragma once
+
+module Hydra
+{
+   module Media
+   {
+      interface MediaSink
+      {
+         string GetMediaFormat();
+         void SendFrames(string media);
+      };
+
+   };
+
+};

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaSinkIf.ice
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaSinkIf.ice
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaSinkIf.ice
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaTranslationIf.ice
URL: https://origsvn.digium.com/svn-view/hydra/techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaTranslationIf.ice?view=auto&rev=614
==============================================================================
--- techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaTranslationIf.ice (added)
+++ techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaTranslationIf.ice Tue May 11 15:25:38 2010
@@ -1,0 +1,23 @@
+#pragma once
+
+#include <Media/MediaSinkIf.ice>
+
+module Hydra
+{
+   module Media
+   {
+      exception InvalidParamsException
+      {
+      };
+      interface MediaTranslationSink extends MediaSink
+      {
+         void Destroy();
+      };
+      interface MediaTranslation
+      {
+         MediaTranslationSink *Create(string from, string to, MediaSink *step) throws InvalidParamsException;
+      };
+
+   };
+
+};

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaTranslationIf.ice
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaTranslationIf.ice
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/Media/MediaTranslationIf.ice
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: techdemo/team/ken.hunt/embeddedPythonTest/slice/RoutingServiceIf.ice
URL: https://origsvn.digium.com/svn-view/hydra/techdemo/team/ken.hunt/embeddedPythonTest/slice/RoutingServiceIf.ice?view=auto&rev=614
==============================================================================
--- techdemo/team/ken.hunt/embeddedPythonTest/slice/RoutingServiceIf.ice (added)
+++ techdemo/team/ken.hunt/embeddedPythonTest/slice/RoutingServiceIf.ice Tue May 11 15:25:38 2010
@@ -1,0 +1,35 @@
+#pragma once
+
+#include <Channel/EndpointIf.ice>
+#include <Channel/ChannelServiceIf.ice>
+
+module Hydra
+{
+   module Routing
+   {
+      exception DestinationNotFoundException
+      {
+      };
+      exception DestinationExistsException
+      {
+      };
+      exception InvalidParamsException
+      {
+      };
+      interface LookupService
+      {
+        // The routing service is responsible for using the information it has to construct a proxy that it returns
+	    idempotent Channel::Endpoint *lookup(string destination) throws DestinationNotFoundException, InvalidParamsException;
+      };
+      interface ConfigurationService
+      {
+	    void AddEndpoint(string destination, string service, string target, string format) throws DestinationExistsException, InvalidParamsException;
+	    void SetFormat(string destination, string format) throws DestinationNotFoundException, InvalidParamsException;
+        void RemoveEndpoint(string destination) throws DestinationNotFoundException, InvalidParamsException;
+        void ClearEndpoints();
+        void ClearEndpointsForService(string service);
+      };
+
+   };
+
+};

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/RoutingServiceIf.ice
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/RoutingServiceIf.ice
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slice/RoutingServiceIf.ice
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: techdemo/team/ken.hunt/embeddedPythonTest/slicescripts/runslice.bat
URL: https://origsvn.digium.com/svn-view/hydra/techdemo/team/ken.hunt/embeddedPythonTest/slicescripts/runslice.bat?view=auto&rev=614
==============================================================================
--- techdemo/team/ken.hunt/embeddedPythonTest/slicescripts/runslice.bat (added)
+++ techdemo/team/ken.hunt/embeddedPythonTest/slicescripts/runslice.bat Tue May 11 15:25:38 2010
@@ -1,0 +1,11 @@
+
+set SLICEDIR=..\slice
+
+slice2py -I%SLICEDIR% -I%SLICEDIR%\Channel -I%SLICEDIR%\Media %SLICEDIR%\RoutingServiceIf.ice 
+
+slice2py -I%SLICEDIR%  -I%SLICEDIR%\Channel -I%SLICEDIR%\Media %SLICEDIR%\Channel\ChannelServiceIf.ice
+slice2py -I%SLICEDIR%  -I%SLICEDIR%\Channel -I%SLICEDIR%\Media %SLICEDIR%\Channel\EndpointIf.ice
+slice2py -I%SLICEDIR%  -I%SLICEDIR%\Channel -I%SLICEDIR%\Media %SLICEDIR%\Channel\SignalIf.ice
+
+slice2py -I%SLICEDIR%  -I%SLICEDIR%\Channel -I%SLICEDIR%\Media %SLICEDIR%\Media\MediaSinkIf.ice
+slice2py -I%SLICEDIR%  -I%SLICEDIR%\Channel -I%SLICEDIR%\Media %SLICEDIR%\Media\MediaTranslationIf.ice

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slicescripts/runslice.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slicescripts/runslice.bat
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: techdemo/team/ken.hunt/embeddedPythonTest/slicescripts/runslice.bat
------------------------------------------------------------------------------
    svn:mime-type = text/plain





More information about the asterisk-scf-commits mailing list