[asterisk-scf-commits] asterisk-scf/release/sip.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Thu May 19 11:40:51 CDT 2011
branch "master" has been updated
via 958eccbe685be31e05b8651dd7bc3a72a3d11c99 (commit)
from a4f034dcfb22c527a701dc32eb24df15faf38622 (commit)
Summary of changes:
config/SipConfigurator.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 958eccbe685be31e05b8651dd7bc3a72a3d11c99
Author: Joshua Colp <jcolp at digium.com>
Date: Tue May 17 14:02:32 2011 -0300
Update configurator so it can use the service locator functionality.
diff --git a/config/SipConfigurator.py b/config/SipConfigurator.py
index d04f2ac..9d7ed3e 100755
--- a/config/SipConfigurator.py
+++ b/config/SipConfigurator.py
@@ -161,6 +161,10 @@ class SipSectionVisitors(Configurator.SectionVisitors):
elif config.get(section, 'type') == 'endpoint':
self.visit_endpoint(config, section)
+# In order to do service locator based lookup we need to pass in a params object
+serviceLocatorParams = AsteriskSCF.SIP.V1.SipConfigurationParams()
+serviceLocatorParams.category = AsteriskSCF.SIP.V1.ConfigurationDiscoveryCategory
+
# Make a configurator application and let it run
-app = Configurator.ConfiguratorApp('Sip.config', SipSectionVisitors())
+app = Configurator.ConfiguratorApp('Sip.config', SipSectionVisitors(), None, serviceLocatorParams)
sys.exit(app.main(sys.argv))
-----------------------------------------------------------------------
--
asterisk-scf/release/sip.git
More information about the asterisk-scf-commits
mailing list