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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue May 22 11:21:07 CDT 2012


branch "master" has been updated
       via  52e9445fc7ab2a592ecc86e3861a05e0816407ed (commit)
      from  29b69ef13c04cb6aae14e39911edae18c3f54f8f (commit)

Summary of changes:
 config/RTPConfigurator.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 52e9445fc7ab2a592ecc86e3861a05e0816407ed
Author: Darren Sessions <dsessions at digium.com>
Date:   Tue May 22 11:21:01 2012 -0500

    Updated the RTP configurator python script to reflect some minor changes made to the SIP configurator that make life easier when running configurator scripts. These updates include using the ASTSCF_HOME env variable to construct a path for the configurator component and then appending that path along with the Ice Python lib path to the system path.

diff --git a/config/RTPConfigurator.py b/config/RTPConfigurator.py
index 5d7e4b9..4b336b8 100755
--- a/config/RTPConfigurator.py
+++ b/config/RTPConfigurator.py
@@ -19,10 +19,16 @@
 # RTP configurator
 
 # Bring in the common configuration infrastructure
-import Ice, Configurator, sys, os
+import os, sys
+
+sys.path.append(os.environ["ASTSCF_HOME"] + "/configurator")
+sys.path.append("/opt/Ice-3.4/python")
+
+import Ice, Configurator
 
 # Load our component specific configuration definitions
 Configurator.astscfLoadSlice("media_rtp_pjmedia", "AsteriskSCF/Configuration/MediaRTPPJMEDIA/RTPConfigurationIf.ice")
+
 import AsteriskSCF.Configuration.MediaRTPPJMEDIA.V1
 
 # Add our own visitor implementations for the sections we support

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


-- 
asterisk-scf/release/media_rtp_pjmedia.git



More information about the asterisk-scf-commits mailing list