[asterisk-scf-commits] asterisk-scf/integration/routing.git branch "async-bridging" created.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Tue Feb 15 08:10:57 CST 2011
branch "async-bridging" has been created
at 4838f17d8deeb4991ee6bd0edc1ba23a197fa0f2 (commit)
- Log -----------------------------------------------------------------
commit 4838f17d8deeb4991ee6bd0edc1ba23a197fa0f2
Author: David M. Lee <dlee at digium.com>
Date: Thu Jan 20 12:33:27 2011 -0600
Refactored out several install functions for installation.
* asterisk_scf_component_install - Install a component
* asterisk_scf_slice_headers_install - Install generated .h files
* asterisk_scf_slice_install - Install .ice files
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9668713..9b6e213 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -31,6 +31,4 @@ target_link_libraries(BasicRoutingService ${LUA_LIBRARIES})
target_link_libraries(BasicRoutingService logging-client)
target_link_libraries(BasicRoutingService asterisk-scf-api)
-install(TARGETS BasicRoutingService
- LIBRARY DESTINATION ${ASTERISK_SCF_INSTALL_ICEBOX_DIR}
- RUNTIME DESTINATION ${ASTERISK_SCF_INSTALL_ICEBOX_DIR})
+asterisk_scf_component_install(BasicRoutingService)
commit c9f6521ba85207afe33ce75fe132217136e27c02
Author: David M. Lee <dlee at digium.com>
Date: Fri Jan 14 13:09:21 2011 -0600
Install basic routing service component
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index cc0e94d..9668713 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -31,4 +31,6 @@ target_link_libraries(BasicRoutingService ${LUA_LIBRARIES})
target_link_libraries(BasicRoutingService logging-client)
target_link_libraries(BasicRoutingService asterisk-scf-api)
-#asterisk_scf_component_install(BasicRoutingService RUNTIME bin "Basic Routing Service" Core)
+install(TARGETS BasicRoutingService
+ LIBRARY DESTINATION ${ASTERISK_SCF_INSTALL_ICEBOX_DIR}
+ RUNTIME DESTINATION ${ASTERISK_SCF_INSTALL_ICEBOX_DIR})
commit d2ba3ebcf37912b94cd6e37e27b60b553737cacb
Author: David M. Lee <dlee at digium.com>
Date: Wed Jan 19 12:18:10 2011 -0600
We require cmake 2.8 or better.
Now make it a specific "You're cmake is old" failure, as opposed to some
random failure later on.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a0fd807..01eadd2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,8 +10,8 @@
if(NOT integrated_build STREQUAL "true")
- # Minimum we require is 2.6
- cmake_minimum_required(VERSION 2.6)
+ # Minimum we require is 2.8
+ cmake_minimum_required(VERSION 2.8)
# Include common AsteriskSCF build infrastructure. Make sure your submodules are pulled.
include(cmake/AsteriskSCF.cmake)
commit be9168f36d9785259a56fa6781b1f9698e70feef
Author: David M. Lee <dlee at digium.com>
Date: Wed Jan 12 19:06:34 2011 -0600
Building a single API library.
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index cc8fe61..cc0e94d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -2,11 +2,6 @@
asterisk_scf_component_init(BasicRoutingService CXX)
find_package(Lua51 REQUIRED)
include_directories(${LUA_INCLUDE_DIR})
-asterisk_scf_component_add_slice(BasicRoutingService RoutingIf)
-asterisk_scf_component_add_slice(BasicRoutingService ServiceLocatorIf)
-asterisk_scf_component_add_slice(BasicRoutingService EndpointIf)
-asterisk_scf_component_add_slice(BasicRoutingService SessionCommunicationsIf)
-asterisk_scf_component_add_slice(BasicRoutingService ComponentServiceIf)
asterisk_scf_component_add_file(BasicRoutingService BasicRoutingServiceApp.cpp)
asterisk_scf_component_add_file(BasicRoutingService SessionRouter.cpp)
asterisk_scf_component_add_file(BasicRoutingService SessionRouter.h)
@@ -27,11 +22,13 @@ if(NOT logger_dir)
message(FATAL_ERROR "The logger directory could not be found ${logger_dir}")
endif()
include_directories(${logger_dir}/include)
+include_directories(${API_INCLUDE_DIR})
include_directories(${utils_dir}/SmartProxy/include)
asterisk_scf_component_build_icebox(BasicRoutingService)
target_link_libraries(BasicRoutingService ${LUA_LIBRARIES})
target_link_libraries(BasicRoutingService logging-client)
+target_link_libraries(BasicRoutingService asterisk-scf-api)
#asterisk_scf_component_install(BasicRoutingService RUNTIME bin "Basic Routing Service" Core)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index fca99ba..c2935e1 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,8 +1,5 @@
# Create Basic Routing Service test project.
asterisk_scf_component_init(RoutingTest CXX)
-asterisk_scf_component_add_slice(RoutingTest RoutingIf)
-asterisk_scf_component_add_slice(RoutingTest ServiceLocatorIf)
-asterisk_scf_component_add_slice(RoutingTest SessionCommunicationsIf)
asterisk_scf_component_add_file(RoutingTest TestRouting.cpp)
asterisk_scf_component_add_file(RoutingTest SharedTestData.h)
@@ -19,7 +16,9 @@ asterisk_scf_component_add_file(RoutingTest MockEndpointLocator.cpp)
asterisk_scf_component_add_ice_libraries(RoutingTest IceStorm)
asterisk_scf_component_add_boost_libraries(RoutingTest unit_test_framework)
+include_directories(${API_INCLUDE_DIR})
asterisk_scf_component_build_icebox(RoutingTest)
+target_link_libraries(RoutingTest asterisk-scf-api)
if(integrated_build STREQUAL "true")
icebox_add_test(RoutingTest ../config/routingtest-integ.config)
commit 4412b56c2b6c9c7c0a8e67674e4b25fa62126cc8
Merge: fd0cca7 0ec69e3
Author: Ken Hunt <ken.hunt at digium.com>
Date: Fri Jan 7 15:03:54 2011 -0600
Merge branch 'master' of git.asterisk.org:asterisk-scf/release/routing
commit fd0cca72f9619ceed4127ca377d17fcd9bbadb8e
Author: Ken Hunt <ken.hunt at digium.com>
Date: Fri Jan 7 14:55:59 2011 -0600
Adjust #includes to use <> and prefix paths with AsteriskSCF.
diff --git a/src/BasicRoutingServiceApp.cpp b/src/BasicRoutingServiceApp.cpp
index f32d60e..75c5a8f 100644
--- a/src/BasicRoutingServiceApp.cpp
+++ b/src/BasicRoutingServiceApp.cpp
@@ -19,19 +19,19 @@
#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
-#include "SmartProxy.h"
-#include "Core/Routing/RoutingIf.h"
-#include "Core/Discovery/ServiceLocatorIf.h"
-#include "SessionCommunications/SessionCommunicationsIf.h"
-#include "System/Component/ComponentServiceIf.h"
+#include <AsteriskSCF/SmartProxy.h>
+#include <AsteriskSCF/Core/Routing/RoutingIf.h>
+#include <AsteriskSCF/Core/Discovery/ServiceLocatorIf.h>
+#include <AsteriskSCF/SessionCommunications/SessionCommunicationsIf.h>
+#include <AsteriskSCF/System/Component/ComponentServiceIf.h>
+#include <AsteriskSCF/Logger/IceLogger.h>
+#include <AsteriskSCF/logger.h>
#include "LuaScriptProcessor.h"
#include "RoutingServiceEventPublisher.h"
#include "EndpointRegistry.h"
#include "RoutingAdmin.h"
#include "SessionRouter.h"
-#include "IceLogger.h"
-#include "logger.h"
using namespace std;
using namespace AsteriskSCF::SessionCommunications::V1;
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 04c5eda..cc8fe61 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -26,10 +26,9 @@ asterisk_scf_component_add_boost_libraries(BasicRoutingService thread date_time
if(NOT logger_dir)
message(FATAL_ERROR "The logger directory could not be found ${logger_dir}")
endif()
-include_directories(${logger_dir}/common)
-include_directories(${logger_dir}/client/src)
+include_directories(${logger_dir}/include)
-include_directories(${utils_dir}/SmartProxy/src)
+include_directories(${utils_dir}/SmartProxy/include)
asterisk_scf_component_build_icebox(BasicRoutingService)
target_link_libraries(BasicRoutingService ${LUA_LIBRARIES})
diff --git a/src/EndpointRegistry.cpp b/src/EndpointRegistry.cpp
index 6993aeb..020d069 100644
--- a/src/EndpointRegistry.cpp
+++ b/src/EndpointRegistry.cpp
@@ -17,10 +17,11 @@
#include <boost/thread/thread.hpp>
#include <boost/thread/shared_mutex.hpp>
+#include <AsteriskSCF/logger.h>
+
#include "RoutingServiceEventPublisher.h"
#include "EndpointRegistry.h"
#include "ScriptProcessor.h"
-#include "logger.h"
using namespace ::AsteriskSCF::Core::Routing::V1;
using namespace ::AsteriskSCF::System::Logging;
diff --git a/src/EndpointRegistry.h b/src/EndpointRegistry.h
index d85a015..e59044f 100644
--- a/src/EndpointRegistry.h
+++ b/src/EndpointRegistry.h
@@ -17,7 +17,7 @@
#include <boost/shared_ptr.hpp>
-#include "RoutingIf.h"
+#include <AsteriskSCF/Core/Routing/RoutingIf.h>
namespace AsteriskSCF
{
diff --git a/src/LuaScriptProcessor.cpp b/src/LuaScriptProcessor.cpp
index 08ee85a..fcc3066 100644
--- a/src/LuaScriptProcessor.cpp
+++ b/src/LuaScriptProcessor.cpp
@@ -18,8 +18,9 @@
#include <boost/thread/locks.hpp>
#include <boost/thread/shared_mutex.hpp>
+#include <AsteriskSCF/logger.h>
+
#include "LuaScriptProcessor.h"
-#include "logger.h"
using namespace ::AsteriskSCF::Core::Endpoint::V1;
using namespace ::AsteriskSCF::System::Logging;
diff --git a/src/LuaScriptProcessor.h b/src/LuaScriptProcessor.h
index aa34bfd..b43c60a 100644
--- a/src/LuaScriptProcessor.h
+++ b/src/LuaScriptProcessor.h
@@ -17,8 +17,8 @@
#include <boost/shared_ptr.hpp>
+#include <AsteriskSCF/Core/Routing/RoutingIf.h>
#include "ScriptProcessor.h"
-#include "RoutingIf.h"
namespace AsteriskSCF
{
diff --git a/src/RoutingAdmin.h b/src/RoutingAdmin.h
index dece098..9cf679a 100644
--- a/src/RoutingAdmin.h
+++ b/src/RoutingAdmin.h
@@ -15,7 +15,7 @@
*/
#pragma once
-#include "RoutingIf.h"
+#include <AsteriskSCF/Core/Routing/RoutingIf.h>
#include "EndpointRegistry.h"
namespace AsteriskSCF
diff --git a/src/RoutingServiceEventPublisher.cpp b/src/RoutingServiceEventPublisher.cpp
index 5d120c5..fa00a8a 100644
--- a/src/RoutingServiceEventPublisher.cpp
+++ b/src/RoutingServiceEventPublisher.cpp
@@ -16,8 +16,9 @@
#include <Ice/Ice.h>
#include <IceStorm/IceStorm.h>
+#include <AsteriskSCF/logger.h>
+
#include "RoutingServiceEventPublisher.h"
-#include "logger.h"
using namespace ::std;
using namespace ::AsteriskSCF::Core::Routing::V1;
diff --git a/src/RoutingServiceEventPublisher.h b/src/RoutingServiceEventPublisher.h
index b3972b6..65ebd12 100644
--- a/src/RoutingServiceEventPublisher.h
+++ b/src/RoutingServiceEventPublisher.h
@@ -18,7 +18,7 @@
#include <Ice/Ice.h>
#include <boost/shared_ptr.hpp>
-#include "RoutingIf.h"
+#include <AsteriskSCF/Core/Routing/RoutingIf.h>
namespace AsteriskSCF
{
diff --git a/src/ScriptProcessor.h b/src/ScriptProcessor.h
index 3d549e6..cb1a988 100644
--- a/src/ScriptProcessor.h
+++ b/src/ScriptProcessor.h
@@ -15,7 +15,7 @@
*/
#pragma once
-#include "RoutingIf.h"
+#include <AsteriskSCF/Core/Routing/RoutingIf.h>
namespace AsteriskSCF
{
diff --git a/src/SessionRouter.cpp b/src/SessionRouter.cpp
index 874f312..30abafe 100644
--- a/src/SessionRouter.cpp
+++ b/src/SessionRouter.cpp
@@ -16,11 +16,12 @@
#include <boost/thread/thread.hpp>
#include <boost/thread/shared_mutex.hpp>
+#include <AsteriskSCF/Core/Routing/RoutingIf.h>
+#include <AsteriskSCF/Core/Endpoint/EndpointIf.h>
+#include <AsteriskSCF/logger.h>
+
#include "SessionRouter.h"
#include "EndpointRegistry.h"
-#include "RoutingIf.h"
-#include "EndpointIf.h"
-#include "logger.h"
using namespace AsteriskSCF::Core::Routing::V1;
using namespace AsteriskSCF::Core::Endpoint::V1;
diff --git a/src/SessionRouter.h b/src/SessionRouter.h
index d955519..6332292 100644
--- a/src/SessionRouter.h
+++ b/src/SessionRouter.h
@@ -18,8 +18,9 @@
#include <Ice/Ice.h>
#include <boost/shared_ptr.hpp>
-#include "SmartProxy.h"
-#include "SessionCommunications/SessionCommunicationsIf.h"
+#include <AsteriskSCF/SmartProxy.h>
+#include <AsteriskSCF/SessionCommunications/SessionCommunicationsIf.h>
+
#include "EndpointRegistry.h"
namespace AsteriskSCF
diff --git a/test/MockBridge.h b/test/MockBridge.h
index 1854c72..5a116bb 100644
--- a/test/MockBridge.h
+++ b/test/MockBridge.h
@@ -16,7 +16,7 @@
#pragma once
#include <Ice/Ice.h>
-#include "SessionCommunications/SessionCommunicationsIf.h"
+#include <AsteriskSCF/SessionCommunications/SessionCommunicationsIf.h>
namespace AsteriskSCF
{
diff --git a/test/MockBridgeManager.h b/test/MockBridgeManager.h
index 7c25c73..f741908 100644
--- a/test/MockBridgeManager.h
+++ b/test/MockBridgeManager.h
@@ -16,7 +16,7 @@
#pragma once
#include <Ice/Ice.h>
-#include "SessionCommunications/SessionCommunicationsIf.h"
+#include <AsteriskSCF/SessionCommunications/SessionCommunicationsIf.h>
namespace AsteriskSCF
{
diff --git a/test/MockEndpointLocator.cpp b/test/MockEndpointLocator.cpp
index a8a9066..7bf3d12 100644
--- a/test/MockEndpointLocator.cpp
+++ b/test/MockEndpointLocator.cpp
@@ -15,8 +15,9 @@
*/
#include <Ice/Ice.h>
-#include "EndpointIf.h"
-#include "RoutingIf.h"
+#include <AsteriskSCF/Core/Endpoint/EndpointIf.h>
+#include <AsteriskSCF/Core/Routing/RoutingIf.h>
+
#include "MockEndpointLocator.h"
#include "SharedTestData.h"
diff --git a/test/MockSession.h b/test/MockSession.h
index 3bdcdd8..0e59151 100644
--- a/test/MockSession.h
+++ b/test/MockSession.h
@@ -16,7 +16,7 @@
#pragma once
#include <Ice/Ice.h>
-#include "SessionCommunicationsIf.h"
+#include <AsteriskSCF/SessionCommunications/SessionCommunicationsIf.h>
namespace AsteriskSCF
{
diff --git a/test/MockSessionEndpoint.h b/test/MockSessionEndpoint.h
index cebcd0e..55a2de6 100644
--- a/test/MockSessionEndpoint.h
+++ b/test/MockSessionEndpoint.h
@@ -16,7 +16,7 @@
#pragma once
#include <Ice/Ice.h>
-#include "SessionCommunicationsIf.h"
+#include <AsteriskSCF/SessionCommunications/SessionCommunicationsIf.h>
#include "MockSession.h"
namespace AsteriskSCF
diff --git a/test/SharedTestData.h b/test/SharedTestData.h
index e1770eb..dd7d145 100644
--- a/test/SharedTestData.h
+++ b/test/SharedTestData.h
@@ -17,13 +17,13 @@
#include <Ice/Ice.h>
+#include <AsteriskSCF/Core/Routing/RoutingIf.h>
+#include <AsteriskSCF/Core/Discovery/ServiceLocatorIf.h>
+#include <AsteriskSCF/SessionCommunications/SessionCommunicationsIf.h>
+
#include "MockBridgeManager.h"
#include "MockEndpointLocator.h"
-#include "RoutingIf.h"
-#include "ServiceLocatorIf.h"
-#include "SessionCommunicationsIf.h"
-
namespace AsteriskSCF
{
namespace RoutingTest
diff --git a/test/TestRouting.cpp b/test/TestRouting.cpp
index 9ba8016..0c5d4c7 100644
--- a/test/TestRouting.cpp
+++ b/test/TestRouting.cpp
@@ -22,16 +22,16 @@
#include <Ice/Ice.h>
#include <IceBox/IceBox.h>
+#include <AsteriskSCF/Core/Routing/RoutingIf.h>
+#include <AsteriskSCF/Core/Discovery/ServiceLocatorIf.h>
+#include <AsteriskSCF/SessionCommunications/SessionCommunicationsIf.h>
+
#include "SharedTestData.h"
#include "MockBridge.h"
#include "MockBridgeManager.h"
#include "MockSession.h"
#include "MockSessionEndpoint.h"
-#include "RoutingIf.h"
-#include "ServiceLocatorIf.h"
-#include "SessionCommunicationsIf.h"
-
using namespace std;
using namespace AsteriskSCF::Core::Routing::V1;
using namespace AsteriskSCF::Core::Endpoint::V1;
commit 0ec69e310c04cc5adc0fea1f363d35126c653c82
Author: Joshua Colp <jcolp at digium.com>
Date: Fri Jan 7 12:52:26 2011 -0400
Remove initialization of iterators. This was giving MSVC++ 10 some heartburn. Now all is well!
diff --git a/src/EndpointRegistry.cpp b/src/EndpointRegistry.cpp
index 6993aeb..8abaa5d 100644
--- a/src/EndpointRegistry.cpp
+++ b/src/EndpointRegistry.cpp
@@ -137,8 +137,8 @@ void EndpointRegistry::addEndpointLocator(const std::string& locatorId, const Re
{
lg(Debug) << "EndpointRegistry::addEndpointLocator() adding locator for " << locatorId << ". Proxy details: " << locator->ice_toString() << std::endl;
- EndpointLocatorMapIterator existing(0);
- EndpointLocatorMapIterator end(0);
+ EndpointLocatorMapIterator existing;
+ EndpointLocatorMapIterator end;
{ // critical scope
boost::shared_lock<boost::shared_mutex> lock(mImpl->mLock);
@@ -177,8 +177,8 @@ void EndpointRegistry::removeEndpointLocator(const std::string& locatorId, const
{
lg(Debug) << "EndpointRegistry::removeEndpointLocator() removing locator " << locatorId;
- EndpointLocatorMapIterator existing(0);
- EndpointLocatorMapIterator end(0);
+ EndpointLocatorMapIterator existing;
+ EndpointLocatorMapIterator end;
{ // critical scope
boost::shared_lock<boost::shared_mutex> lock(mImpl->mLock);
@@ -218,8 +218,8 @@ void EndpointRegistry::setEndpointLocatorDestinationIds(const std::string& locat
{
try
{
- EndpointLocatorMapIterator existing(0);
- EndpointLocatorMapIterator end(0);
+ EndpointLocatorMapIterator existing;
+ EndpointLocatorMapIterator end;
{ // critical scope
boost::shared_lock<boost::shared_mutex> lock(mImpl->mLock);
commit 229737c095035362f35c8f24c00462149e1c23eb
Author: David M. Lee <dlee at digium.com>
Date: Fri Dec 10 14:36:23 2010 -0600
Ref-counting Logger changes.
diff --git a/src/BasicRoutingServiceApp.cpp b/src/BasicRoutingServiceApp.cpp
index 3920cc2..f32d60e 100644
--- a/src/BasicRoutingServiceApp.cpp
+++ b/src/BasicRoutingServiceApp.cpp
@@ -44,7 +44,7 @@ using namespace AsteriskSCF::SmartProxy;
namespace
{
-Logger &lg = getLoggerFactory().getLogger("AsteriskSCF.BasicRoutingService");
+Logger lg = getLoggerFactory().getLogger("AsteriskSCF.BasicRoutingService");
}
using namespace AsteriskSCF::Core::Routing::V1::Event;
diff --git a/src/EndpointRegistry.cpp b/src/EndpointRegistry.cpp
index 6eecc72..6993aeb 100644
--- a/src/EndpointRegistry.cpp
+++ b/src/EndpointRegistry.cpp
@@ -29,7 +29,7 @@ using namespace ::std;
namespace
{
-Logger &lg = getLoggerFactory().getLogger("AsteriskSCF.BasicRoutingService");
+Logger lg = getLoggerFactory().getLogger("AsteriskSCF.BasicRoutingService");
}
namespace AsteriskSCF
diff --git a/src/LuaScriptProcessor.cpp b/src/LuaScriptProcessor.cpp
index c4ce529..08ee85a 100644
--- a/src/LuaScriptProcessor.cpp
+++ b/src/LuaScriptProcessor.cpp
@@ -27,7 +27,7 @@ using namespace ::std;
namespace
{
-Logger &lg = getLoggerFactory().getLogger("AsteriskSCF.BasicRoutingService");
+Logger lg = getLoggerFactory().getLogger("AsteriskSCF.BasicRoutingService");
}
namespace AsteriskSCF
diff --git a/src/RoutingServiceEventPublisher.cpp b/src/RoutingServiceEventPublisher.cpp
index 8aae895..5d120c5 100644
--- a/src/RoutingServiceEventPublisher.cpp
+++ b/src/RoutingServiceEventPublisher.cpp
@@ -25,7 +25,7 @@ using namespace ::AsteriskSCF::System::Logging;
namespace
{
-Logger &lg = getLoggerFactory().getLogger("AsteriskSCF.BasicRoutingService");
+Logger lg = getLoggerFactory().getLogger("AsteriskSCF.BasicRoutingService");
}
namespace AsteriskSCF
diff --git a/src/SessionRouter.cpp b/src/SessionRouter.cpp
index b50b711..874f312 100644
--- a/src/SessionRouter.cpp
+++ b/src/SessionRouter.cpp
@@ -31,7 +31,7 @@ using namespace std;
namespace
{
-Logger &lg = getLoggerFactory().getLogger("AsteriskSCF.BasicRoutingService");
+Logger lg = getLoggerFactory().getLogger("AsteriskSCF.BasicRoutingService");
}
/**
-----------------------------------------------------------------------
--
asterisk-scf/integration/routing.git
More information about the asterisk-scf-commits
mailing list