[asterisk-scf-commits] asterisk-scf/release/bridging.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Jun 21 14:18:48 CDT 2011


branch "master" has been updated
       via  dfce33b5d280441d21899a6430e410a7a9a06eec (commit)
       via  582597ef057e23615e58f34cb25fd189cb24500b (commit)
       via  44deec087299ae6e7e457d92a8e3eddb33bf5d91 (commit)
       via  f9b734a3cfed335135ded07351687875e59f718f (commit)
       via  7b3e6553054734794066b5e36680a658283f1837 (commit)
       via  de613db351cda98535a414807c3429852cd724b2 (commit)
       via  b7ae201969cca9bfd117798089b862a125301192 (commit)
       via  32886356a5bcd59234a75f9c7308c80ffb6a4576 (commit)
       via  720b682894560773ab7fc778be19612e055e30b6 (commit)
      from  bc05637e28f4adb42614f4e57634cf60f84feb59 (commit)

Summary of changes:
 .gitmodules                                        |   12 ---
 CMakeLists.txt                                     |    7 +-
 cmake                                              |    1 -
 logger                                             |    1 -
 slice                                              |    1 -
 .../BridgeService}/BridgeReplicatorIf.ice          |   11 ++-
 src/BridgeImpl.cpp                                 |    6 +-
 src/BridgeImpl.h                                   |    8 +-
 src/BridgeManagerImpl.cpp                          |   14 ++--
 src/BridgeManagerImpl.h                            |    8 +-
 src/BridgeReplicatorService.cpp                    |   10 +-
 src/BridgeReplicatorStateListenerI.cpp             |    2 +-
 src/BridgeReplicatorStateListenerI.h               |    2 +-
 src/BridgeServiceConfig.h                          |    2 +-
 src/CMakeLists.txt                                 |   89 ++++++++++----------
 src/DebugUtil.h                                    |   22 +++---
 src/MediaSplicer.cpp                               |    2 +-
 src/MediaSplicer.h                                 |    4 +-
 src/Service.cpp                                    |    4 +-
 src/SessionCollection.cpp                          |    2 +-
 src/SessionCollection.h                            |    4 +-
 src/SessionListener.cpp                            |    2 +-
 src/SessionOperations.cpp                          |    2 +-
 src/SessionOperations.h                            |    6 +-
 src/SessionWrapper.cpp                             |   26 +++---
 src/SessionWrapper.h                               |   16 ++--
 test/CMakeLists.txt                                |   66 +++++++--------
 test/TestBridging.cpp                              |    2 +-
 test/UnitTests.cpp                                 |    2 +-
 test/channel_driver                                |    1 -
 30 files changed, 159 insertions(+), 176 deletions(-)
 delete mode 100644 .gitmodules
 delete mode 160000 cmake
 delete mode 160000 logger
 delete mode 160000 slice
 rename {src => slice/AsteriskSCF/Replication/BridgeService}/BridgeReplicatorIf.ice (97%)
 delete mode 160000 test/channel_driver


- Log -----------------------------------------------------------------
commit dfce33b5d280441d21899a6430e410a7a9a06eec
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Fri Jun 17 11:46:51 2011 -0500

    Rely on automatic inclusion of project's 'include' directory.

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 73c590d..a9de994 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,7 +1,7 @@
 include_directories(${logger_dir}/include)
 include_directories(${astscf-ice-util-cpp_dir}/include)
 
-include_directories("../src")
+include_directories(../src)
 
 astscf_slice_include_collection(TEST_CHANNEL)
 

commit 582597ef057e23615e58f34cb25fd189cb24500b
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Wed Jun 15 16:55:31 2011 -0500

    Provide 'astscf' prefix for linking to ice-util-cpp library.

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index af0b9a3..c7f87b5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,5 +1,5 @@
 include_directories(${logger_dir}/include)
-include_directories(${ice-util-cpp_dir}/include)
+include_directories(${astscf-ice-util-cpp_dir}/include)
 
 astscf_component_init(bridgeservice)
 astscf_component_add_files(bridgeservice Service.cpp)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index a770dfa..73c590d 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,5 +1,5 @@
 include_directories(${logger_dir}/include)
-include_directories(${ice-util-cpp_dir}/include)
+include_directories(${astscf-ice-util-cpp_dir}/include)
 
 include_directories("../src")
 

commit 44deec087299ae6e7e457d92a8e3eddb33bf5d91
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Wed Jun 15 16:40:16 2011 -0500

    Install component-specific Slice files.
    
    Use astscf_slice_collection_install() to install the Slice files provided
    by each component, that define its interfaces. As part of this change, many
    of these Slice files were renamed and moved into different namespaces, to
    provide consistency.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 77d9be5..63316cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,3 +4,4 @@ add_subdirectory(src)
 if(BUILD_TESTING)
   add_subdirectory(test)
 endif()
+astscf_slice_collection_install(PROJECT)
diff --git a/slice/BridgeReplicatorIf.ice b/slice/AsteriskSCF/Replication/BridgeService/BridgeReplicatorIf.ice
similarity index 97%
rename from slice/BridgeReplicatorIf.ice
rename to slice/AsteriskSCF/Replication/BridgeService/BridgeReplicatorIf.ice
index 1d3e1b8..4b404cb 100644
--- a/slice/BridgeReplicatorIf.ice
+++ b/slice/AsteriskSCF/Replication/BridgeService/BridgeReplicatorIf.ice
@@ -22,7 +22,9 @@
 
 module AsteriskSCF
 {
-module Bridge
+module Replication
+{
+module BridgeService
 {
 ["suppress"]
 module V1
@@ -240,6 +242,7 @@ interface Replicator
     idempotent ReplicatedStateItemSeq getAllState();
 };
 
-}; /* End of namespace V1 */
-}; /* End of namespace Bridge */
-}; /* End of namespace AsteriskSCF */
+}; /* End of module V1 */
+}; /* End of module BridgeService */
+}; /* End of module Replication */
+}; /* End of module AsteriskSCF */
diff --git a/src/BridgeImpl.cpp b/src/BridgeImpl.cpp
index 60b6bb2..f669b40 100755
--- a/src/BridgeImpl.cpp
+++ b/src/BridgeImpl.cpp
@@ -33,7 +33,7 @@
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::SessionCommunications::V1;
 using namespace AsteriskSCF::BridgeService;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace AsteriskSCF;
 using namespace std;
 
@@ -1016,7 +1016,7 @@ AsteriskSCF::BridgeService::BridgeServant::create(const string& name, const Ice:
         const ReplicatorSmartPrx& replicator,
         const Logger& logger)
 {
-    BridgeStateItemPtr state(new AsteriskSCF::Bridge::V1::BridgeStateItem);
+    BridgeStateItemPtr state(new AsteriskSCF::Replication::BridgeService::V1::BridgeStateItem);
     state->runningState = Running;
     state->serial = SerialCounterStart;
     //
@@ -1033,7 +1033,7 @@ AsteriskSCF::BridgeService::BridgeServant::create(const Ice::ObjectAdapterPtr& o
         const AsteriskSCF::BridgeService::BridgeListenerMgrPtr& listenerMgr,
         const ReplicatorSmartPrx& replicator,
         const Logger& logger,
-        const AsteriskSCF::Bridge::V1::BridgeStateItemPtr& state)
+        const AsteriskSCF::Replication::BridgeService::V1::BridgeStateItemPtr& state)
 {
     logger(Debug) << FUNLOG << ": creating replica for " << state->bridgeId;
     IceUtil::Handle<AsteriskSCF::BridgeService::BridgeServant> bridge(
diff --git a/src/BridgeImpl.h b/src/BridgeImpl.h
index f764355..2c9ab9f 100644
--- a/src/BridgeImpl.h
+++ b/src/BridgeImpl.h
@@ -98,10 +98,10 @@ public:
      * TODO: complete documentation.
      *
      **/
-    virtual void updateState(const AsteriskSCF::Bridge::V1::BridgeStateItemPtr& state) = 0;
+    virtual void updateState(const AsteriskSCF::Replication::BridgeService::V1::BridgeStateItemPtr& state) = 0;
 
-    virtual void addListener(const AsteriskSCF::Bridge::V1::BridgeListenerStateItemPtr& state) = 0;
-    virtual void removeListener(const AsteriskSCF::Bridge::V1::BridgeListenerStateItemPtr& state) = 0;
+    virtual void addListener(const AsteriskSCF::Replication::BridgeService::V1::BridgeListenerStateItemPtr& state) = 0;
+    virtual void removeListener(const AsteriskSCF::Replication::BridgeService::V1::BridgeListenerStateItemPtr& state) = 0;
 
     virtual std::string id() = 0;
 
@@ -148,7 +148,7 @@ public:
             const AsteriskSCF::BridgeService::BridgeListenerMgrPtr& listenerMgr,
             const ReplicatorSmartPrx& replicator,
             const AsteriskSCF::System::Logging::Logger& logger,
-            const AsteriskSCF::Bridge::V1::BridgeStateItemPtr& state);
+            const AsteriskSCF::Replication::BridgeService::V1::BridgeStateItemPtr& state);
 };
 typedef IceUtil::Handle<BridgeServant> BridgeServantPtr;
 
diff --git a/src/BridgeManagerImpl.cpp b/src/BridgeManagerImpl.cpp
index f2696c0..4c132dd 100644
--- a/src/BridgeManagerImpl.cpp
+++ b/src/BridgeManagerImpl.cpp
@@ -34,7 +34,7 @@ using namespace AsteriskSCF::System::Component::V1;
 using namespace AsteriskSCF::SessionCommunications::V1;
 using namespace AsteriskSCF::Core::Discovery::V1;
 using namespace AsteriskSCF::BridgeService;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace std;
 
 namespace 
@@ -302,7 +302,7 @@ void BridgeManagerImpl::shutdown(const Ice::Current& current)
 {
     mLogger(Debug) << FUNLOG << ":" << objectIdFromCurrent(current); 
     boost::unique_lock<boost::shared_mutex> lock(mLock);
-    if (mState->runningState == AsteriskSCF::Bridge::V1::ShuttingDown)
+    if (mState->runningState == AsteriskSCF::Replication::BridgeService::V1::ShuttingDown)
     {
         mLogger(Debug) << FUNLOG << ": already shutting down.";
         return;
@@ -317,7 +317,7 @@ void BridgeManagerImpl::shutdown(const Ice::Current& current)
         mListeners->stopping();
     }
     mLogger(Info) << current.adapter->getCommunicator()->identityToString(current.id) << ": shutting down." ;
-    mState->runningState = AsteriskSCF::Bridge::V1::ShuttingDown;
+    mState->runningState = AsteriskSCF::Replication::BridgeService::V1::ShuttingDown;
     reap();
     for (vector<BridgeInfo>::iterator i = mBridges.begin(); i != mBridges.end(); ++i)
     {
@@ -329,13 +329,13 @@ void BridgeManagerImpl::shutdown(const Ice::Current& current)
         mListeners->stopped();
     }
     mAdapter->getCommunicator()->shutdown();
-    mState->runningState = AsteriskSCF::Bridge::V1::Destroyed;
+    mState->runningState = AsteriskSCF::Replication::BridgeService::V1::Destroyed;
 }
 
 bool BridgeManagerImpl::destroyed()
 {
     mLogger(Debug) << FUNLOG;
-    return mState->runningState == AsteriskSCF::Bridge::V1::Destroyed;
+    return mState->runningState == AsteriskSCF::Replication::BridgeService::V1::Destroyed;
 }
 
 BridgeManagerStateItemPtr BridgeManagerImpl::getState()
@@ -441,12 +441,12 @@ void BridgeManagerImpl::statePreCheck(const string& caller)
     {
         mLogger(Info) << caller << ": remote call invoked when not active!";
     }
-    if (mState->runningState == AsteriskSCF::Bridge::V1::ShuttingDown)
+    if (mState->runningState == AsteriskSCF::Replication::BridgeService::V1::ShuttingDown)
     {
         mLogger(Debug) << caller << ": called when shutting down." ;
         throw AsteriskSCF::System::Component::V1::ShuttingDown();
     }
-    if (mState->runningState == AsteriskSCF::Bridge::V1::Paused || mListeners->isSuspended())
+    if (mState->runningState == AsteriskSCF::Replication::BridgeService::V1::Paused || mListeners->isSuspended())
     {
         mLogger(Debug) << caller << ": called when suspended." ;
         throw AsteriskSCF::System::Component::V1::Suspended();
diff --git a/src/BridgeManagerImpl.h b/src/BridgeManagerImpl.h
index dd7fad3..2f22125 100644
--- a/src/BridgeManagerImpl.h
+++ b/src/BridgeManagerImpl.h
@@ -42,9 +42,9 @@ public:
      *
      **/
 
-    virtual AsteriskSCF::Bridge::V1::BridgeManagerStateItemPtr getState() = 0;
+    virtual AsteriskSCF::Replication::BridgeService::V1::BridgeManagerStateItemPtr getState() = 0;
 
-    virtual void updateState(const AsteriskSCF::Bridge::V1::BridgeManagerStateItemPtr& state) = 0;
+    virtual void updateState(const AsteriskSCF::Replication::BridgeService::V1::BridgeManagerStateItemPtr& state) = 0;
 
     virtual std::vector<BridgeServantPtr> getBridges() = 0;
 
@@ -52,9 +52,9 @@ public:
 
     virtual std::string getID() = 0;
 
-    virtual void createBridgeReplica(const AsteriskSCF::Bridge::V1::BridgeStateItemPtr& bridgeState) = 0;
+    virtual void createBridgeReplica(const AsteriskSCF::Replication::BridgeService::V1::BridgeStateItemPtr& bridgeState) = 0;
 
-    virtual void removeBridge(const AsteriskSCF::Bridge::V1::BridgeStateItemPtr& bridgeState) = 0;
+    virtual void removeBridge(const AsteriskSCF::Replication::BridgeService::V1::BridgeStateItemPtr& bridgeState) = 0;
 };
 
 typedef IceUtil::Handle<BridgeManagerServant> BridgeManagerServantPtr;
diff --git a/src/BridgeReplicatorService.cpp b/src/BridgeReplicatorService.cpp
index e672287..e80f8e1 100644
--- a/src/BridgeReplicatorService.cpp
+++ b/src/BridgeReplicatorService.cpp
@@ -27,15 +27,15 @@
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::SessionCommunications::V1;
 using namespace AsteriskSCF::Core::Discovery::V1;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace AsteriskSCF;
 using namespace std;
 
 typedef AsteriskSCF::Replication::StateReplicator<
-    AsteriskSCF::Bridge::V1::Replicator,
-    AsteriskSCF::Bridge::V1::ReplicatedStateItemPtr,
+    AsteriskSCF::Replication::BridgeService::V1::Replicator,
+    AsteriskSCF::Replication::BridgeService::V1::ReplicatedStateItemPtr,
     string,
-    AsteriskSCF::Bridge::V1::ReplicatorListenerPrx> ReplicatorI;
+    AsteriskSCF::Replication::BridgeService::V1::ReplicatorListenerPrx> ReplicatorI;
 
 typedef IceUtil::Handle<ReplicatorI> ReplicatorIPtr;
 
diff --git a/src/BridgeReplicatorStateListenerI.cpp b/src/BridgeReplicatorStateListenerI.cpp
index 9b82c50..d260135 100644
--- a/src/BridgeReplicatorStateListenerI.cpp
+++ b/src/BridgeReplicatorStateListenerI.cpp
@@ -25,7 +25,7 @@
 
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::BridgeService;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace std;
 
 namespace
diff --git a/src/BridgeReplicatorStateListenerI.h b/src/BridgeReplicatorStateListenerI.h
index e666b59..f8e4cf6 100644
--- a/src/BridgeReplicatorStateListenerI.h
+++ b/src/BridgeReplicatorStateListenerI.h
@@ -35,7 +35,7 @@ class Logger;
 namespace BridgeService
 {
     
-Bridge::V1::ReplicatorListenerPtr createStateListener(const AsteriskSCF::System::Logging::Logger& logger,
+Replication::BridgeService::V1::ReplicatorListenerPtr createStateListener(const AsteriskSCF::System::Logging::Logger& logger,
         const AsteriskSCF::BridgeService::BridgeManagerServantPtr& manager);
     
 } /* End of namespace BridgeService */
diff --git a/src/BridgeServiceConfig.h b/src/BridgeServiceConfig.h
index 5452f5e..6acfcb8 100644
--- a/src/BridgeServiceConfig.h
+++ b/src/BridgeServiceConfig.h
@@ -67,7 +67,7 @@ inline std::string objectIdFromCurrent(const Ice::Current& current)
     return current.adapter->getCommunicator()->identityToString(current.id);
 }
 
-typedef AsteriskSCF::Discovery::SmartProxy<AsteriskSCF::Bridge::V1::ReplicatorPrx> ReplicatorSmartPrx;
+typedef AsteriskSCF::Discovery::SmartProxy<AsteriskSCF::Replication::BridgeService::V1::ReplicatorPrx> ReplicatorSmartPrx;
 
 
 } // End of namespace BridgeService
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0b46805..af0b9a3 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -29,7 +29,7 @@ astscf_component_add_files(bridgeservice Tasks.h)
 astscf_component_add_files(bridgeservice InternalExceptions.h)
 astscf_component_add_files(bridgeservice BridgeServiceConfig.h)
 astscf_component_add_files(bridgeservice ListenerManager.h)
-astscf_component_add_slices(bridgeservice PROJECT BridgeReplicatorIf.ice)
+astscf_component_add_slices(bridgeservice PROJECT AsteriskSCF/Replication/BridgeService/BridgeReplicatorIf.ice)
 astscf_component_add_ice_libraries(bridgeservice IceStorm)
 astscf_component_add_boost_libraries(bridgeservice thread date_time)
 astscf_component_add_slice_collection_libraries(bridgeservice ASTSCF)
@@ -39,7 +39,7 @@ astscf_component_install(bridgeservice)
 
 astscf_component_init(BridgeReplicator)
 astscf_component_add_files(BridgeReplicator BridgeReplicatorService.cpp)
-astscf_component_add_slices(BridgeReplicator PROJECT BridgeReplicatorIf.ice)
+astscf_component_add_slices(BridgeReplicator PROJECT AsteriskSCF/Replication/BridgeService/BridgeReplicatorIf.ice)
 astscf_component_add_ice_libraries(BridgeReplicator IceStorm)
 astscf_component_add_boost_libraries(BridgeReplicator thread date_time)
 astscf_component_add_slice_collection_libraries(BridgeReplicator ASTSCF)
diff --git a/src/DebugUtil.h b/src/DebugUtil.h
index b8e6e41..c259a2b 100644
--- a/src/DebugUtil.h
+++ b/src/DebugUtil.h
@@ -26,7 +26,7 @@ namespace BridgeService
 
 inline
 std::ostream& dumpState(std::ostream& os, const std::string& prefix,
-        const AsteriskSCF::Bridge::V1::BridgedSessionPtr& session,
+        const AsteriskSCF::Replication::BridgeService::V1::BridgedSessionPtr& session,
         const Ice::CommunicatorPtr& comm)
 {
 #ifndef _NDEBUG
@@ -42,13 +42,13 @@ std::ostream& dumpState(std::ostream& os, const std::string& prefix,
     os << prefix   << "State: ";
     switch (session->currentState)
     {
-        case AsteriskSCF::Bridge::V1::Added:
+        case AsteriskSCF::Replication::BridgeService::V1::Added:
             os << "added\n";
             break;
-        case AsteriskSCF::Bridge::V1::Connected:
+        case AsteriskSCF::Replication::BridgeService::V1::Connected:
             os << "connected\n";
             break;
-        case AsteriskSCF::Bridge::V1::Disconnected:
+        case AsteriskSCF::Replication::BridgeService::V1::Disconnected:
             os << "disconnected\n";
             break;
         default:
@@ -62,7 +62,7 @@ std::ostream& dumpState(std::ostream& os, const std::string& prefix,
 }
 
 inline
-std::ostream& dumpState(std::ostream& os, const AsteriskSCF::Bridge::V1::BridgeStateItemPtr& state,
+std::ostream& dumpState(std::ostream& os, const AsteriskSCF::Replication::BridgeService::V1::BridgeStateItemPtr& state,
         const Ice::CommunicatorPtr&)
 {
 #ifndef _NDEBUG
@@ -77,16 +77,16 @@ std::ostream& dumpState(std::ostream& os, const AsteriskSCF::Bridge::V1::BridgeS
     os << "state : ";
     switch (state->runningState)
     {
-        case AsteriskSCF::Bridge::V1::Running:
+        case AsteriskSCF::Replication::BridgeService::V1::Running:
             os << "running\n";
             break;
-        case AsteriskSCF::Bridge::V1::Paused:
+        case AsteriskSCF::Replication::BridgeService::V1::Paused:
             os << "paused\n";
             break;
-        case AsteriskSCF::Bridge::V1::ShuttingDown:
+        case AsteriskSCF::Replication::BridgeService::V1::ShuttingDown:
             os << "shutting down\n";
             break;
-        case AsteriskSCF::Bridge::V1::Destroyed:
+        case AsteriskSCF::Replication::BridgeService::V1::Destroyed:
             os << "destroyed\n";
             break;
         default:
@@ -95,10 +95,10 @@ std::ostream& dumpState(std::ostream& os, const AsteriskSCF::Bridge::V1::BridgeS
     os << "Media replication policy: ";
     switch (state->mediaReplicationPolicy)
     {
-        case AsteriskSCF::Bridge::V1::Replicate:
+        case AsteriskSCF::Replication::BridgeService::V1::Replicate:
             os << "replicate\n";
             break;
-        case AsteriskSCF::Bridge::V1::Reconstruct:
+        case AsteriskSCF::Replication::BridgeService::V1::Reconstruct:
             os << "reconstruct\n";
             break;
         default:
diff --git a/src/MediaSplicer.cpp b/src/MediaSplicer.cpp
index 1a631b6..e8abb17 100755
--- a/src/MediaSplicer.cpp
+++ b/src/MediaSplicer.cpp
@@ -37,7 +37,7 @@
 //
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::Media::V1;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace std;
 
 namespace AsteriskSCF
diff --git a/src/MediaSplicer.h b/src/MediaSplicer.h
index 835374d..e00b2a9 100644
--- a/src/MediaSplicer.h
+++ b/src/MediaSplicer.h
@@ -71,7 +71,7 @@ public:
     /**
      * Replication support function.
      **/
-    virtual void update(const AsteriskSCF::Bridge::V1::SessionPairingPtr& update) = 0;
+    virtual void update(const AsteriskSCF::Replication::BridgeService::V1::SessionPairingPtr& update) = 0;
 };
 typedef IceUtil::Handle<MediaConnector> MediaConnectorPtr;
  
@@ -83,7 +83,7 @@ public:
             const AsteriskSCF::System::Logging::Logger& logger);
     
     void connect(const SessionWrapperPtr& session, const AsteriskSCF::SessionCommunications::V1::SessionPrx& sessionPrx);
-    MediaConnectorPtr createReplica(const AsteriskSCF::Bridge::V1::SessionPairingPtr& pairings);
+    MediaConnectorPtr createReplica(const AsteriskSCF::Replication::BridgeService::V1::SessionPairingPtr& pairings);
 
 private:
     boost::shared_ptr<MediaSplicerI> mImpl;
diff --git a/src/Service.cpp b/src/Service.cpp
index 451ed60..f0379d4 100644
--- a/src/Service.cpp
+++ b/src/Service.cpp
@@ -32,7 +32,7 @@ using namespace AsteriskSCF::SessionCommunications::V1;
 using namespace AsteriskSCF::Core::Discovery::V1;
 using namespace AsteriskSCF::System::Component::V1;
 using namespace AsteriskSCF::BridgeService;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace AsteriskSCF;
 using namespace std;
 
diff --git a/src/SessionCollection.cpp b/src/SessionCollection.cpp
index bf9db83..eb15ad9 100644
--- a/src/SessionCollection.cpp
+++ b/src/SessionCollection.cpp
@@ -21,7 +21,7 @@
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::SessionCommunications::V1;
 using namespace AsteriskSCF::BridgeService;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace AsteriskSCF;
 using namespace std;
 
diff --git a/src/SessionCollection.h b/src/SessionCollection.h
index 745c7df..d306da9 100644
--- a/src/SessionCollection.h
+++ b/src/SessionCollection.h
@@ -128,9 +128,9 @@ public:
      **/
     void reap();
 
-    void replicaUpdate(const AsteriskSCF::Bridge::V1::BridgedSessionPtr& bridgedSession);
+    void replicaUpdate(const AsteriskSCF::Replication::BridgeService::V1::BridgedSessionPtr& bridgedSession);
 
-    void removeSession(const AsteriskSCF::Bridge::V1::BridgedSessionPtr& bridgedSession);
+    void removeSession(const AsteriskSCF::Replication::BridgeService::V1::BridgedSessionPtr& bridgedSession);
     
 private:
 
diff --git a/src/SessionListener.cpp b/src/SessionListener.cpp
index bf5b450..10a8d73 100644
--- a/src/SessionListener.cpp
+++ b/src/SessionListener.cpp
@@ -21,7 +21,7 @@
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::SessionCommunications::V1;
 using namespace AsteriskSCF::BridgeService;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace AsteriskSCF;
 using namespace std;
 
diff --git a/src/SessionOperations.cpp b/src/SessionOperations.cpp
index d8ab630..58670a9 100644
--- a/src/SessionOperations.cpp
+++ b/src/SessionOperations.cpp
@@ -19,7 +19,7 @@
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::SessionCommunications::V1;
 using namespace AsteriskSCF::BridgeService;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace AsteriskSCF;
 using namespace std;
 
diff --git a/src/SessionOperations.h b/src/SessionOperations.h
index 89e6c8b..97726fc 100644
--- a/src/SessionOperations.h
+++ b/src/SessionOperations.h
@@ -80,7 +80,7 @@ private:
 class IfStateCriteria
 {
 public:
-    IfStateCriteria(AsteriskSCF::Bridge::V1::BridgedSessionState state) :
+    IfStateCriteria(AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState state) :
         mState(state)
     {
     }
@@ -91,7 +91,7 @@ public:
     }
 
 private:
-    AsteriskSCF::Bridge::V1::BridgedSessionState mState;   
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState mState;   
 };
 
 class StateMemberSelector
@@ -101,7 +101,7 @@ public:
         mWrapper(wrapper)
     {
     }
-    AsteriskSCF::Bridge::V1::BridgedSessionState select()
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState select()
     {
         return mWrapper->getBridgedSession()->currentState;
     }
diff --git a/src/SessionWrapper.cpp b/src/SessionWrapper.cpp
index 48ccfa8..c66b0f8 100644
--- a/src/SessionWrapper.cpp
+++ b/src/SessionWrapper.cpp
@@ -23,7 +23,7 @@
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::SessionCommunications::V1;
 using namespace AsteriskSCF::BridgeService;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace AsteriskSCF;
 using namespace std;
 
@@ -248,7 +248,7 @@ class SetStateTask : public QueuedTask
 {
 public:
     SetStateTask(const SessionWrapperPtr& session,
-            const AsteriskSCF::Bridge::V1::BridgedSessionState newState) :
+            const AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState newState) :
         QueuedTask("SetStateTask"),
         mSession(session),
         mState(newState)
@@ -264,15 +264,15 @@ protected:
 
 private:
     SessionWrapperPtr mSession;
-    AsteriskSCF::Bridge::V1::BridgedSessionState mState;
-    AsteriskSCF::Bridge::V1::BridgedSessionState mOldState;
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState mState;
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState mOldState;
 };
 
 class SetStateFromTask : public QueuedTask
 {
 public:
     SetStateFromTask(const SessionWrapperPtr& session,
-            const AsteriskSCF::Bridge::V1::BridgedSessionState newState,
+            const AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState newState,
             const StateSet& startStates) :
         QueuedTask("SetStateFromTask"),
         mSession(session),
@@ -294,8 +294,8 @@ protected:
 
 private:
     SessionWrapperPtr mSession;
-    AsteriskSCF::Bridge::V1::BridgedSessionState mState;
-    AsteriskSCF::Bridge::V1::BridgedSessionState mOldState;
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState mState;
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState mOldState;
     StateSet mStartStates;
 };
 
@@ -359,11 +359,11 @@ QueuedTasks createShutdownTasks(const SessionWrapperPtr& session, const SessionL
     // queue from continuing if the session is already connected or done.
     //
     StateSet statesToContinueOn;
-    statesToContinueOn.insert(::AsteriskSCF::Bridge::V1::Added);
-    statesToContinueOn.insert(::AsteriskSCF::Bridge::V1::Connected);
+    statesToContinueOn.insert(::AsteriskSCF::Replication::BridgeService::V1::Added);
+    statesToContinueOn.insert(::AsteriskSCF::Replication::BridgeService::V1::Connected);
 
     QueuedTasks tasks;
-    tasks.push_back(new SetStateFromTask(session, ::AsteriskSCF::Bridge::V1::Disconnected, statesToContinueOn));
+    tasks.push_back(new SetStateFromTask(session, ::AsteriskSCF::Replication::BridgeService::V1::Disconnected, statesToContinueOn));
     if (code)
     {
         tasks.push_back(new RemoveBridgeTask(session, listener, true));
@@ -376,7 +376,7 @@ QueuedTasks createShutdownTasks(const SessionWrapperPtr& session, const SessionL
 QueuedTasks createSetupTasks(const SessionWrapperPtr& session)
 {
     QueuedTasks tasks;
-    tasks.push_back(new SetStateTask(session, ::AsteriskSCF::Bridge::V1::Connected));
+    tasks.push_back(new SetStateTask(session, ::AsteriskSCF::Replication::BridgeService::V1::Connected));
     tasks.push_back(new ConnectMediaTask(session));
     return tasks;
 }
@@ -591,11 +591,11 @@ void SessionWrapper::shutdown(const SessionListenerPrx& listener, const Response
     // shutdownRunner->start();
 }
 
-AsteriskSCF::Bridge::V1::BridgedSessionState SessionWrapper::setState(const AsteriskSCF::Bridge::V1::BridgedSessionState newState)
+AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState SessionWrapper::setState(const AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState newState)
 {
     mLogger(Debug) << FUNLOG << ": updating state " << mId;
     BridgedSessionPtr copyOfNewState;
-    AsteriskSCF::Bridge::V1::BridgedSessionState oldState;
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState oldState;
     {
         boost::unique_lock<boost::shared_mutex> lock(mLock);
         oldState = mSession->currentState;
diff --git a/src/SessionWrapper.h b/src/SessionWrapper.h
index e0a8835..9ddb43c 100644
--- a/src/SessionWrapper.h
+++ b/src/SessionWrapper.h
@@ -30,7 +30,7 @@ namespace BridgeService
 class SessionWrapper : public Ice::LocalObject
 {
 public:
-    SessionWrapper(const AsteriskSCF::Bridge::V1::BridgedSessionPtr& session,
+    SessionWrapper(const AsteriskSCF::Replication::BridgeService::V1::BridgedSessionPtr& session,
             const MediaSplicerPtr& splicer,
             const AsteriskSCF::BridgeService::ReplicatorSmartPrx& replicator,
             const AsteriskSCF::System::Logging::Logger& logger);
@@ -70,7 +70,7 @@ public:
      * creates a copy of the BridgedSession object.
      * Does not initiate replication.
      **/
-    AsteriskSCF::Bridge::V1::BridgedSessionPtr getBridgedSession() const;
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionPtr getBridgedSession() const;
 
     /**
      * Accesses the session proxy itself that is part of this session.
@@ -87,7 +87,7 @@ public:
      **/
     void setupMedia();
     void setConnector(const MediaConnectorPtr& connector);
-    void updateMedia(const AsteriskSCF::Bridge::V1::SessionPairingPtr& pairings);
+    void updateMedia(const AsteriskSCF::Replication::BridgeService::V1::SessionPairingPtr& pairings);
 
     /**
      * Frees connection related resources.
@@ -99,7 +99,7 @@ public:
      * Updates the contents of this session with replica updates. This should
      * not be called unless this session is hosted by a standby service.
      **/
-    void update(const AsteriskSCF::Bridge::V1::BridgedSessionPtr& update);
+    void update(const AsteriskSCF::Replication::BridgeService::V1::BridgedSessionPtr& update);
 
     /**
      * Marks this wrapper as "done" and ready to be cleaned up.
@@ -127,7 +127,7 @@ public:
     //
     // TODO: Refactor so these methods don't need to be exposed.
     //
-    AsteriskSCF::Bridge::V1::BridgedSessionState setState(const AsteriskSCF::Bridge::V1::BridgedSessionState newState);
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState setState(const AsteriskSCF::Replication::BridgeService::V1::BridgedSessionState newState);
 
     /**
      * Disconnection helper.
@@ -137,7 +137,7 @@ public:
 private:
 
     mutable boost::shared_mutex mLock;
-    AsteriskSCF::Bridge::V1::BridgedSessionPtr mSession;
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionPtr mSession;
     AsteriskSCF::BridgeService::ReplicatorSmartPrx mReplicator;
     MediaConnectorPtr mConnector;
     AsteriskSCF::System::Logging::Logger mLogger;
@@ -149,10 +149,10 @@ private:
      * Sends changes to the replication service. This should never occur
      * unless the host service is active.
      **/
-    void pushUpdate(const AsteriskSCF::Bridge::V1::BridgedSessionPtr& update);
+    void pushUpdate(const AsteriskSCF::Replication::BridgeService::V1::BridgedSessionPtr& update);
 
 
-    AsteriskSCF::Bridge::V1::BridgedSessionPtr createUpdate();
+    AsteriskSCF::Replication::BridgeService::V1::BridgedSessionPtr createUpdate();
 };
 
 typedef IceUtil::Handle<SessionWrapper> SessionWrapperPtr;
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 1d3acf7..a770dfa 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -14,7 +14,7 @@ astscf_component_add_files(bridge_component_test BridgeManagerListenerI.h)
 astscf_component_add_files(bridge_component_test BridgeManagerListenerI.cpp)
 astscf_component_add_files(bridge_component_test TestCommandDriver.cpp)
 astscf_component_add_files(bridge_component_test TestCommandDriver.h)
-astscf_component_add_slices(bridge_component_test PROJECT BridgeReplicatorIf.ice)
+astscf_component_add_slices(bridge_component_test PROJECT AsteriskSCF/Replication/BridgeService/BridgeReplicatorIf.ice)
 astscf_component_add_ice_libraries(bridge_component_test IceStorm)
 astscf_component_add_ice_libraries(bridge_component_test IceBox)
 astscf_component_add_boost_libraries(bridge_component_test unit_test_framework thread)
@@ -24,7 +24,7 @@ target_link_libraries(bridge_component_test logging-client)
 astscf_test_icebox(bridge_component_test config/test_bridging.conf)
 
 astscf_component_init(bridge_unit_tests)
-astscf_component_add_slices(bridge_unit_tests PROJECT BridgeReplicatorIf.ice)
+astscf_component_add_slices(bridge_unit_tests PROJECT AsteriskSCF/Replication/BridgeService/BridgeReplicatorIf.ice)
 astscf_component_add_files(bridge_unit_tests ../src/SessionCollection.cpp)
 astscf_component_add_files(bridge_unit_tests ../src/SessionOperations.cpp)
 astscf_component_add_files(bridge_unit_tests ../src/SessionWrapper.cpp)
diff --git a/test/UnitTests.cpp b/test/UnitTests.cpp
index b3bfcef..8a8ebb7 100644
--- a/test/UnitTests.cpp
+++ b/test/UnitTests.cpp
@@ -32,7 +32,7 @@
 
 using namespace AsteriskSCF::System::Logging;
 using namespace AsteriskSCF::SessionCommunications::V1;
-using namespace AsteriskSCF::Bridge::V1;
+using namespace AsteriskSCF::Replication::BridgeService::V1;
 using namespace AsteriskSCF::BridgeService;
 using namespace std;
 

commit f9b734a3cfed335135ded07351687875e59f718f
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Tue Jun 14 17:24:31 2011 -0500

    Use Slice collections support in AsteriskSCF.cmake.

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c3ba1c2..0b46805 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,4 +1,3 @@
-include_directories(${API_INCLUDE_DIR})
 include_directories(${logger_dir}/include)
 include_directories(${ice-util-cpp_dir}/include)
 
@@ -33,6 +32,7 @@ astscf_component_add_files(bridgeservice ListenerManager.h)
 astscf_component_add_slices(bridgeservice PROJECT BridgeReplicatorIf.ice)
 astscf_component_add_ice_libraries(bridgeservice IceStorm)
 astscf_component_add_boost_libraries(bridgeservice thread date_time)
+astscf_component_add_slice_collection_libraries(bridgeservice ASTSCF)
 astscf_component_build_icebox(bridgeservice)
 target_link_libraries(bridgeservice logging-client)
 astscf_component_install(bridgeservice)
@@ -42,7 +42,7 @@ astscf_component_add_files(BridgeReplicator BridgeReplicatorService.cpp)
 astscf_component_add_slices(BridgeReplicator PROJECT BridgeReplicatorIf.ice)
 astscf_component_add_ice_libraries(BridgeReplicator IceStorm)
 astscf_component_add_boost_libraries(BridgeReplicator thread date_time)
+astscf_component_add_slice_collection_libraries(BridgeReplicator ASTSCF)
 astscf_component_build_icebox(BridgeReplicator)
 target_link_libraries(BridgeReplicator logging-client)
-target_link_libraries(BridgeReplicator astscf-api)
 astscf_component_install(BridgeReplicator)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ebefc73..1d3acf7 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,14 +1,12 @@
-include_directories(${API_INCLUDE_DIR})
 include_directories(${logger_dir}/include)
 include_directories(${ice-util-cpp_dir}/include)
-include_directories(${TEST_CHANNEL_API_INCLUDE_DIR})
 
 include_directories("../src")
 
-astscf_slice_collection(TEST_CHANNEL ${CMAKE_CURRENT_SOURCE_DIR}/../../test_channel/slice)
+astscf_slice_include_collection(TEST_CHANNEL)
 
 astscf_component_init(bridge_component_test)
-astscf_component_add_slices(bridge_component_test TEST_CHANNEL CommandsIf.ice)
+astscf_component_add_slices(bridge_component_test TEST_CHANNEL AsteriskSCF/TestChannel/CommandsIf.ice)
 astscf_component_add_files(bridge_component_test TestBridging.cpp)
 astscf_component_add_files(bridge_component_test BridgeListenerI.h)
 astscf_component_add_files(bridge_component_test BridgeListenerI.cpp)
@@ -20,8 +18,9 @@ astscf_component_add_slices(bridge_component_test PROJECT BridgeReplicatorIf.ice
 astscf_component_add_ice_libraries(bridge_component_test IceStorm)
 astscf_component_add_ice_libraries(bridge_component_test IceBox)
 astscf_component_add_boost_libraries(bridge_component_test unit_test_framework thread)
+astscf_component_add_slice_collection_libraries(bridge_component_test ASTSCF TEST_CHANNEL)
 astscf_component_build_icebox(bridge_component_test)
-target_link_libraries(bridge_component_test logging-client astscf-api test-channel-api)
+target_link_libraries(bridge_component_test logging-client)
 astscf_test_icebox(bridge_component_test config/test_bridging.conf)
 
 astscf_component_init(bridge_unit_tests)
@@ -33,6 +32,7 @@ astscf_component_add_files(bridge_unit_tests ../src/MediaSplicer.cpp)
 astscf_component_add_files(bridge_unit_tests UnitTests.cpp)
 astscf_component_add_ice_libraries(bridge_unit_tests Ice)
 astscf_component_add_boost_libraries(bridge_unit_tests unit_test_framework thread)
+astscf_component_add_slice_collection_libraries(bridge_unit_tests ASTSCF)
 astscf_component_build_standalone(bridge_unit_tests)
-target_link_libraries(bridge_unit_tests logging-client astscf-api)
+target_link_libraries(bridge_unit_tests logging-client)
 astscf_test_boost(bridge_unit_tests)

commit 7b3e6553054734794066b5e36680a658283f1837
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Mon Jun 6 18:50:26 2011 -0500

    Slice collections, and consistency of naming in various places.
    
    * Support Slice file 'collections'.
    
    * Make all Slice directories in repositories be called 'slice' and at the
      top level in the repository, so the automatic 'PROJECT' collection will
      be generated for them.
    
    * Build ice-util-cpp and util-cpp as single libraries.
    
    * Enable building and execution of ice-util-cpp top-level unit tests.
    
    Conflicts:
    
    	cmake/example/CMakeLists.txt

diff --git a/src/BridgeReplicatorIf.ice b/slice/BridgeReplicatorIf.ice
similarity index 100%
rename from src/BridgeReplicatorIf.ice
rename to slice/BridgeReplicatorIf.ice
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 22a5b9f..c3ba1c2 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -2,50 +2,47 @@ include_directories(${API_INCLUDE_DIR})
 include_directories(${logger_dir}/include)
 include_directories(${ice-util-cpp_dir}/include)
 
-astscf_slice_include_directories(${API_SLICE_DIR})
-
 astscf_component_init(bridgeservice)
-astscf_component_add_file(bridgeservice Service.cpp)
-astscf_component_add_file(bridgeservice BridgeImpl.h)
-astscf_component_add_file(bridgeservice BridgeImpl.cpp)
-astscf_component_add_file(bridgeservice BridgeListenerMgr.h)
-astscf_component_add_file(bridgeservice BridgeListenerMgr.cpp)
-astscf_component_add_file(bridgeservice BridgeManagerListenerMgr.h)
-astscf_component_add_file(bridgeservice BridgeManagerListenerMgr.cpp)
-astscf_component_add_file(bridgeservice BridgeReplicatorStateListenerI.h)
-astscf_component_add_file(bridgeservice BridgeReplicatorStateListenerI.cpp)
-astscf_component_add_file(bridgeservice BridgeManagerImpl.h)
-astscf_component_add_file(bridgeservice BridgeManagerImpl.cpp)
-astscf_component_add_file(bridgeservice SessionListener.cpp)
-astscf_component_add_file(bridgeservice SessionListener.h)
-astscf_component_add_file(bridgeservice SessionWrapper.cpp)
-astscf_component_add_file(bridgeservice SessionWrapper.h)
-astscf_component_add_file(bridgeservice SessionCollection.cpp)
-astscf_component_add_file(bridgeservice SessionCollection.h)
-astscf_component_add_file(bridgeservice SessionOperations.cpp)
-astscf_component_add_file(bridgeservice SessionOperations.h)
-astscf_component_add_file(bridgeservice ServiceUtil.h)
-astscf_component_add_file(bridgeservice DebugUtil.h)
-astscf_component_add_file(bridgeservice MediaSplicer.h)
-astscf_component_add_file(bridgeservice MediaSplicer.cpp)
-astscf_component_add_file(bridgeservice Tasks.h)
-astscf_component_add_file(bridgeservice InternalExceptions.h)
-astscf_component_add_file(bridgeservice BridgeServiceConfig.h)
-astscf_component_add_file(bridgeservice ListenerManager.h)
-astscf_component_add_slice(bridgeservice ./BridgeReplicatorIf.ice)
+astscf_component_add_files(bridgeservice Service.cpp)
+astscf_component_add_files(bridgeservice BridgeImpl.h)
+astscf_component_add_files(bridgeservice BridgeImpl.cpp)
+astscf_component_add_files(bridgeservice BridgeListenerMgr.h)
+astscf_component_add_files(bridgeservice BridgeListenerMgr.cpp)
+astscf_component_add_files(bridgeservice BridgeManagerListenerMgr.h)
+astscf_component_add_files(bridgeservice BridgeManagerListenerMgr.cpp)
+astscf_component_add_files(bridgeservice BridgeReplicatorStateListenerI.h)
+astscf_component_add_files(bridgeservice BridgeReplicatorStateListenerI.cpp)
+astscf_component_add_files(bridgeservice BridgeManagerImpl.h)
+astscf_component_add_files(bridgeservice BridgeManagerImpl.cpp)
+astscf_component_add_files(bridgeservice SessionListener.cpp)
+astscf_component_add_files(bridgeservice SessionListener.h)
+astscf_component_add_files(bridgeservice SessionWrapper.cpp)
+astscf_component_add_files(bridgeservice SessionWrapper.h)
+astscf_component_add_files(bridgeservice SessionCollection.cpp)
+astscf_component_add_files(bridgeservice SessionCollection.h)
+astscf_component_add_files(bridgeservice SessionOperations.cpp)
+astscf_component_add_files(bridgeservice SessionOperations.h)
+astscf_component_add_files(bridgeservice ServiceUtil.h)
+astscf_component_add_files(bridgeservice DebugUtil.h)
+astscf_component_add_files(bridgeservice MediaSplicer.h)
+astscf_component_add_files(bridgeservice MediaSplicer.cpp)
+astscf_component_add_files(bridgeservice Tasks.h)
+astscf_component_add_files(bridgeservice InternalExceptions.h)
+astscf_component_add_files(bridgeservice BridgeServiceConfig.h)
+astscf_component_add_files(bridgeservice ListenerManager.h)
+astscf_component_add_slices(bridgeservice PROJECT BridgeReplicatorIf.ice)
 astscf_component_add_ice_libraries(bridgeservice IceStorm)
-astscf_component_add_ice_libraries(bridgeservice IceBox)
 astscf_component_add_boost_libraries(bridgeservice thread date_time)
 astscf_component_build_icebox(bridgeservice)
 target_link_libraries(bridgeservice logging-client)
 astscf_component_install(bridgeservice)
 
 astscf_component_init(BridgeReplicator)
-astscf_component_add_file(BridgeReplicator BridgeReplicatorService.cpp)
-astscf_component_add_slice(BridgeReplicator ./BridgeReplicatorIf.ice)
+astscf_component_add_files(BridgeReplicator BridgeReplicatorService.cpp)
+astscf_component_add_slices(BridgeReplicator PROJECT BridgeReplicatorIf.ice)
 astscf_component_add_ice_libraries(BridgeReplicator IceStorm)
 astscf_component_add_boost_libraries(BridgeReplicator thread date_time)
 astscf_component_build_icebox(BridgeReplicator)
 target_link_libraries(BridgeReplicator logging-client)
-target_link_libraries(BridgeReplicator asterisk-scf-api)
+target_link_libraries(BridgeReplicator astscf-api)
 astscf_component_install(BridgeReplicator)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index dee7b9d..ebefc73 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,42 +1,38 @@
 include_directories(${API_INCLUDE_DIR})
 include_directories(${logger_dir}/include)
 include_directories(${ice-util-cpp_dir}/include)
-
-astscf_slice_include_directories(${API_SLICE_DIR})
+include_directories(${TEST_CHANNEL_API_INCLUDE_DIR})
 
 include_directories("../src")
 
-include_directories(${CMAKE_CURRENT_BINARY_DIR}/../../test_channel/local_slice/generated)
+astscf_slice_collection(TEST_CHANNEL ${CMAKE_CURRENT_SOURCE_DIR}/../../test_channel/slice)
 
 astscf_component_init(bridge_component_test)
-astscf_component_add_slice(bridge_component_test CommandsIf)
-astscf_component_add_file(bridge_component_test TestBridging.cpp)
-astscf_component_add_file(bridge_component_test BridgeListenerI.h)
-astscf_component_add_file(bridge_component_test BridgeListenerI.cpp)
-astscf_component_add_file(bridge_component_test BridgeManagerListenerI.h)
-astscf_component_add_file(bridge_component_test BridgeManagerListenerI.cpp)
-astscf_component_add_file(bridge_component_test TestCommandDriver.cpp)
-astscf_component_add_file(bridge_component_test TestCommandDriver.h)
-astscf_component_add_slice(bridge_component_test ../src/BridgeReplicatorIf.ice)
+astscf_component_add_slices(bridge_component_test TEST_CHANNEL CommandsIf.ice)
+astscf_component_add_files(bridge_component_test TestBridging.cpp)
+astscf_component_add_files(bridge_component_test BridgeListenerI.h)
+astscf_component_add_files(bridge_component_test BridgeListenerI.cpp)
+astscf_component_add_files(bridge_component_test BridgeManagerListenerI.h)
+astscf_component_add_files(bridge_component_test BridgeManagerListenerI.cpp)
+astscf_component_add_files(bridge_component_test TestCommandDriver.cpp)
+astscf_component_add_files(bridge_component_test TestCommandDriver.h)
+astscf_component_add_slices(bridge_component_test PROJECT BridgeReplicatorIf.ice)
 astscf_component_add_ice_libraries(bridge_component_test IceStorm)
 astscf_component_add_ice_libraries(bridge_component_test IceBox)
 astscf_component_add_boost_libraries(bridge_component_test unit_test_framework thread)
 astscf_component_build_icebox(bridge_component_test)
-target_link_libraries(bridge_component_test logging-client)
-target_link_libraries(bridge_component_test asterisk-scf-api)
-target_link_libraries(bridge_component_test test-channel-api)
+target_link_libraries(bridge_component_test logging-client astscf-api test-channel-api)
 astscf_test_icebox(bridge_component_test config/test_bridging.conf)
 
 astscf_component_init(bridge_unit_tests)
-astscf_component_add_slice(bridge_unit_tests ../src/BridgeReplicatorIf.ice)
-astscf_component_add_file(bridge_unit_tests ../src/SessionCollection.cpp)
-astscf_component_add_file(bridge_unit_tests ../src/SessionOperations.cpp)
-astscf_component_add_file(bridge_unit_tests ../src/SessionWrapper.cpp)
-astscf_component_add_file(bridge_unit_tests ../src/MediaSplicer.cpp)
-astscf_component_add_file(bridge_unit_tests UnitTests.cpp)
+astscf_component_add_slices(bridge_unit_tests PROJECT BridgeReplicatorIf.ice)
+astscf_component_add_files(bridge_unit_tests ../src/SessionCollection.cpp)
+astscf_component_add_files(bridge_unit_tests ../src/SessionOperations.cpp)
+astscf_component_add_files(bridge_unit_tests ../src/SessionWrapper.cpp)
+astscf_component_add_files(bridge_unit_tests ../src/MediaSplicer.cpp)
+astscf_component_add_files(bridge_unit_tests UnitTests.cpp)
 astscf_component_add_ice_libraries(bridge_unit_tests Ice)
 astscf_component_add_boost_libraries(bridge_unit_tests unit_test_framework thread)
 astscf_component_build_standalone(bridge_unit_tests)
-target_link_libraries(bridge_unit_tests logging-client)
-target_link_libraries(bridge_unit_tests asterisk-scf-api)
+target_link_libraries(bridge_unit_tests logging-client astscf-api)
 astscf_test_boost(bridge_unit_tests)

commit de613db351cda98535a414807c3429852cd724b2
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Fri Jun 3 15:20:33 2011 -0500

    Accommodate change from ASTERISK_SCF_ICEBOX_EXPORT to ASTSCF_DLL_EXPORT.

diff --git a/src/BridgeReplicatorService.cpp b/src/BridgeReplicatorService.cpp
index 6bda816..e672287 100644
--- a/src/BridgeReplicatorService.cpp
+++ b/src/BridgeReplicatorService.cpp
@@ -190,7 +190,7 @@ void BridgeReplicatorApp::stop()
 }
 
 extern "C" {
-ASTERISK_SCF_ICEBOX_EXPORT ::IceBox::Service* create(Ice::CommunicatorPtr)
+ASTSCF_DLL_EXPORT ::IceBox::Service* create(Ice::CommunicatorPtr)
 {
     return new BridgeReplicatorApp;
 }
diff --git a/src/Service.cpp b/src/Service.cpp
index addafb4..451ed60 100644
--- a/src/Service.cpp
+++ b/src/Service.cpp
@@ -334,7 +334,7 @@ void BridgingApp::stop()
 }
 
 extern "C" {
-ASTERISK_SCF_ICEBOX_EXPORT ::IceBox::Service* create(Ice::CommunicatorPtr)
+ASTSCF_DLL_EXPORT ::IceBox::Service* create(Ice::CommunicatorPtr)
 {
     return new BridgingApp;
 }
diff --git a/test/TestBridging.cpp b/test/TestBridging.cpp
index f5569e9..82edf8d 100644
--- a/test/TestBridging.cpp
+++ b/test/TestBridging.cpp
@@ -925,7 +925,7 @@ private:
 }
 
 extern "C" {
-ASTERISK_SCF_ICEBOX_EXPORT ::IceBox::Service* create(Ice::CommunicatorPtr)
+ASTSCF_DLL_EXPORT ::IceBox::Service* create(Ice::CommunicatorPtr)
 {
     return new TestService;
 }

commit b7ae201969cca9bfd117798089b862a125301192
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Thu Jun 2 18:02:07 2011 -0500

    Update to use 'astscf' prefix in CMake scripts instead of 'asterisk_scf'.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 94ef319..77d9be5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-asterisk_scf_project(BridgingService 3.4)
+astscf_project(BridgingService 3.4)
 
 add_subdirectory(src)
 if(BUILD_TESTING)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f2c83c3..22a5b9f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -2,50 +2,50 @@ include_directories(${API_INCLUDE_DIR})
 include_directories(${logger_dir}/include)
 include_directories(${ice-util-cpp_dir}/include)
 
-asterisk_scf_slice_include_directories(${API_SLICE_DIR})
+astscf_slice_include_directories(${API_SLICE_DIR})
 
-asterisk_scf_component_init(bridgeservice)
-asterisk_scf_component_add_file(bridgeservice Service.cpp)
-asterisk_scf_component_add_file(bridgeservice BridgeImpl.h)
-asterisk_scf_component_add_file(bridgeservice BridgeImpl.cpp)
-asterisk_scf_component_add_file(bridgeservice BridgeListenerMgr.h)
-asterisk_scf_component_add_file(bridgeservice BridgeListenerMgr.cpp)
-asterisk_scf_component_add_file(bridgeservice BridgeManagerListenerMgr.h)
-asterisk_scf_component_add_file(bridgeservice BridgeManagerListenerMgr.cpp)
-asterisk_scf_component_add_file(bridgeservice BridgeReplicatorStateListenerI.h)
-asterisk_scf_component_add_file(bridgeservice BridgeReplicatorStateListenerI.cpp)
-asterisk_scf_component_add_file(bridgeservice BridgeManagerImpl.h)
-asterisk_scf_component_add_file(bridgeservice BridgeManagerImpl.cpp)
-asterisk_scf_component_add_file(bridgeservice SessionListener.cpp)
-asterisk_scf_component_add_file(bridgeservice SessionListener.h)
-asterisk_scf_component_add_file(bridgeservice SessionWrapper.cpp)
-asterisk_scf_component_add_file(bridgeservice SessionWrapper.h)
-asterisk_scf_component_add_file(bridgeservice SessionCollection.cpp)
-asterisk_scf_component_add_file(bridgeservice SessionCollection.h)
-asterisk_scf_component_add_file(bridgeservice SessionOperations.cpp)
-asterisk_scf_component_add_file(bridgeservice SessionOperations.h)
-asterisk_scf_component_add_file(bridgeservice ServiceUtil.h)
-asterisk_scf_component_add_file(bridgeservice DebugUtil.h)
-asterisk_scf_component_add_file(bridgeservice MediaSplicer.h)
-asterisk_scf_component_add_file(bridgeservice MediaSplicer.cpp)
-asterisk_scf_component_add_file(bridgeservice Tasks.h)
-asterisk_scf_component_add_file(bridgeservice InternalExceptions.h)
-asterisk_scf_component_add_file(bridgeservice BridgeServiceConfig.h)
-asterisk_scf_component_add_file(bridgeservice ListenerManager.h)
-asterisk_scf_component_add_slice(bridgeservice ./BridgeReplicatorIf.ice)
-asterisk_scf_component_add_ice_libraries(bridgeservice IceStorm)
-asterisk_scf_component_add_ice_libraries(bridgeservice IceBox)
-asterisk_scf_component_add_boost_libraries(bridgeservice thread date_time)
-asterisk_scf_component_build_icebox(bridgeservice)
+astscf_component_init(bridgeservice)
+astscf_component_add_file(bridgeservice Service.cpp)
+astscf_component_add_file(bridgeservice BridgeImpl.h)
+astscf_component_add_file(bridgeservice BridgeImpl.cpp)
+astscf_component_add_file(bridgeservice BridgeListenerMgr.h)
+astscf_component_add_file(bridgeservice BridgeListenerMgr.cpp)
+astscf_component_add_file(bridgeservice BridgeManagerListenerMgr.h)
+astscf_component_add_file(bridgeservice BridgeManagerListenerMgr.cpp)
+astscf_component_add_file(bridgeservice BridgeReplicatorStateListenerI.h)
+astscf_component_add_file(bridgeservice BridgeReplicatorStateListenerI.cpp)
+astscf_component_add_file(bridgeservice BridgeManagerImpl.h)
+astscf_component_add_file(bridgeservice BridgeManagerImpl.cpp)
+astscf_component_add_file(bridgeservice SessionListener.cpp)
+astscf_component_add_file(bridgeservice SessionListener.h)
+astscf_component_add_file(bridgeservice SessionWrapper.cpp)
+astscf_component_add_file(bridgeservice SessionWrapper.h)
+astscf_component_add_file(bridgeservice SessionCollection.cpp)
+astscf_component_add_file(bridgeservice SessionCollection.h)
+astscf_component_add_file(bridgeservice SessionOperations.cpp)
+astscf_component_add_file(bridgeservice SessionOperations.h)
+astscf_component_add_file(bridgeservice ServiceUtil.h)
+astscf_component_add_file(bridgeservice DebugUtil.h)
+astscf_component_add_file(bridgeservice MediaSplicer.h)
+astscf_component_add_file(bridgeservice MediaSplicer.cpp)
+astscf_component_add_file(bridgeservice Tasks.h)
+astscf_component_add_file(bridgeservice InternalExceptions.h)
+astscf_component_add_file(bridgeservice BridgeServiceConfig.h)
+astscf_component_add_file(bridgeservice ListenerManager.h)
+astscf_component_add_slice(bridgeservice ./BridgeReplicatorIf.ice)
+astscf_component_add_ice_libraries(bridgeservice IceStorm)
+astscf_component_add_ice_libraries(bridgeservice IceBox)
+astscf_component_add_boost_libraries(bridgeservice thread date_time)
+astscf_component_build_icebox(bridgeservice)
 target_link_libraries(bridgeservice logging-client)
-asterisk_scf_component_install(bridgeservice)
+astscf_component_install(bridgeservice)
 
-asterisk_scf_component_init(BridgeReplicator)
-asterisk_scf_component_add_file(BridgeReplicator BridgeReplicatorService.cpp)
-asterisk_scf_component_add_slice(BridgeReplicator ./BridgeReplicatorIf.ice)
-asterisk_scf_component_add_ice_libraries(BridgeReplicator IceStorm)
-asterisk_scf_component_add_boost_libraries(BridgeReplicator thread date_time)
-asterisk_scf_component_build_icebox(BridgeReplicator)
+astscf_component_init(BridgeReplicator)
+astscf_component_add_file(BridgeReplicator BridgeReplicatorService.cpp)
+astscf_component_add_slice(BridgeReplicator ./BridgeReplicatorIf.ice)
+astscf_component_add_ice_libraries(BridgeReplicator IceStorm)
+astscf_component_add_boost_libraries(BridgeReplicator thread date_time)
+astscf_component_build_icebox(BridgeReplicator)
 target_link_libraries(BridgeReplicator logging-client)
 target_link_libraries(BridgeReplicator asterisk-scf-api)
-asterisk_scf_component_install(BridgeReplicator)
+astscf_component_install(BridgeReplicator)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index b06bf75..dee7b9d 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -2,41 +2,41 @@ include_directories(${API_INCLUDE_DIR})
 include_directories(${logger_dir}/include)
 include_directories(${ice-util-cpp_dir}/include)
 
-asterisk_scf_slice_include_directories(${API_SLICE_DIR})
+astscf_slice_include_directories(${API_SLICE_DIR})
 
 include_directories("../src")
 
 include_directories(${CMAKE_CURRENT_BINARY_DIR}/../../test_channel/local_slice/generated)
 
-asterisk_scf_component_init(bridge_component_test)
-asterisk_scf_component_add_slice(bridge_component_test CommandsIf)
-asterisk_scf_component_add_file(bridge_component_test TestBridging.cpp)
-asterisk_scf_component_add_file(bridge_component_test BridgeListenerI.h)
-asterisk_scf_component_add_file(bridge_component_test BridgeListenerI.cpp)
-asterisk_scf_component_add_file(bridge_component_test BridgeManagerListenerI.h)
-asterisk_scf_component_add_file(bridge_component_test BridgeManagerListenerI.cpp)
-asterisk_scf_component_add_file(bridge_component_test TestCommandDriver.cpp)
-asterisk_scf_component_add_file(bridge_component_test TestCommandDriver.h)
-asterisk_scf_component_add_slice(bridge_component_test ../src/BridgeReplicatorIf.ice)
-asterisk_scf_component_add_ice_libraries(bridge_component_test IceStorm)
-asterisk_scf_component_add_ice_libraries(bridge_component_test IceBox)
-asterisk_scf_component_add_boost_libraries(bridge_component_test unit_test_framework thread)
-asterisk_scf_component_build_icebox(bridge_component_test)
+astscf_component_init(bridge_component_test)
+astscf_component_add_slice(bridge_component_test CommandsIf)
+astscf_component_add_file(bridge_component_test TestBridging.cpp)
+astscf_component_add_file(bridge_component_test BridgeListenerI.h)
+astscf_component_add_file(bridge_component_test BridgeListenerI.cpp)
+astscf_component_add_file(bridge_component_test BridgeManagerListenerI.h)
+astscf_component_add_file(bridge_component_test BridgeManagerListenerI.cpp)
+astscf_component_add_file(bridge_component_test TestCommandDriver.cpp)
+astscf_component_add_file(bridge_component_test TestCommandDriver.h)
+astscf_component_add_slice(bridge_component_test ../src/BridgeReplicatorIf.ice)
+astscf_component_add_ice_libraries(bridge_component_test IceStorm)
+astscf_component_add_ice_libraries(bridge_component_test IceBox)
+astscf_component_add_boost_libraries(bridge_component_test unit_test_framework thread)
+astscf_component_build_icebox(bridge_component_test)
 target_link_libraries(bridge_component_test logging-client)
 target_link_libraries(bridge_component_test asterisk-scf-api)
 target_link_libraries(bridge_component_test test-channel-api)
-asterisk_scf_test_icebox(bridge_component_test config/test_bridging.conf)
+astscf_test_icebox(bridge_component_test config/test_bridging.conf)
 
-asterisk_scf_component_init(bridge_unit_tests)
-asterisk_scf_component_add_slice(bridge_unit_tests ../src/BridgeReplicatorIf.ice)
-asterisk_scf_component_add_file(bridge_unit_tests ../src/SessionCollection.cpp)
-asterisk_scf_component_add_file(bridge_unit_tests ../src/SessionOperations.cpp)
-asterisk_scf_component_add_file(bridge_unit_tests ../src/SessionWrapper.cpp)
-asterisk_scf_component_add_file(bridge_unit_tests ../src/MediaSplicer.cpp)
-asterisk_scf_component_add_file(bridge_unit_tests UnitTests.cpp)
-asterisk_scf_component_add_ice_libraries(bridge_unit_tests Ice)
-asterisk_scf_component_add_boost_libraries(bridge_unit_tests unit_test_framework thread)
-asterisk_scf_component_build_standalone(bridge_unit_tests)
+astscf_component_init(bridge_unit_tests)
+astscf_component_add_slice(bridge_unit_tests ../src/BridgeReplicatorIf.ice)
+astscf_component_add_file(bridge_unit_tests ../src/SessionCollection.cpp)
+astscf_component_add_file(bridge_unit_tests ../src/SessionOperations.cpp)
+astscf_component_add_file(bridge_unit_tests ../src/SessionWrapper.cpp)
+astscf_component_add_file(bridge_unit_tests ../src/MediaSplicer.cpp)
+astscf_component_add_file(bridge_unit_tests UnitTests.cpp)
+astscf_component_add_ice_libraries(bridge_unit_tests Ice)
+astscf_component_add_boost_libraries(bridge_unit_tests unit_test_framework thread)
+astscf_component_build_standalone(bridge_unit_tests)
 target_link_libraries(bridge_unit_tests logging-client)
 target_link_libraries(bridge_unit_tests asterisk-scf-api)
-asterisk_scf_test_boost(bridge_unit_tests)
+astscf_test_boost(bridge_unit_tests)

commit 32886356a5bcd59234a75f9c7308c80ffb6a4576
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Thu Jun 2 16:04:55 2011 -0500

    Allow user to disable building of tests.
    
    The CTest module offers a BUILD_TESTING option; if the user turns this option
    off, we shouldn't bother building any of our tests.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d12705..94ef319 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,6 @@
 asterisk_scf_project(BridgingService 3.4)
 
 add_subdirectory(src)
-add_subdirectory(test)
+if(BUILD_TESTING)
+  add_subdirectory(test)
+endif()

commit 720b682894560773ab7fc778be19612e055e30b6
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Thu Jun 2 15:10:30 2011 -0500

    Remove directories used for submodules.

diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index bf532f0..0000000
--- a/.gitmodules
+++ /dev/null
@@ -1,12 +0,0 @@
-[submodule "slice"]
-	path = slice
-	url = ../../integration/slice
-[submodule "cmake"]
-	path = cmake
-	url = ../../release/cmake
-[submodule "test/channel_driver"]
-	path = test/channel_driver
-	url = ../../integration/test_channel
-[submodule "logger"]
-	path = logger
-	url = git at git.asterisk.org:asterisk-scf/integration/logger
diff --git a/cmake b/cmake
deleted file mode 160000
index cd39ae8..0000000
--- a/cmake
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit cd39ae824f03a19dc934709caee21e930f3b9988
diff --git a/logger b/logger
deleted file mode 160000
index e376034..0000000
--- a/logger
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit e376034d1791e30821dc5f37bd64fd155643d478
diff --git a/slice b/slice
deleted file mode 160000
index 71b02b7..0000000
--- a/slice
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 71b02b7071eab51d417f059566dc4aef1ebc2f2f
diff --git a/test/channel_driver b/test/channel_driver
deleted file mode 160000
index 6f7bcf6..0000000
--- a/test/channel_driver
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 6f7bcf618f587e939743eb987af205bb5d114835

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


-- 
asterisk-scf/release/bridging.git



More information about the asterisk-scf-commits mailing list