Module: sems
Branch: 1.4
Commit: 6aea593e2a556a558092a50ed347bf409fda7b08
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=6aea593e2a556a558092a50ed347bf409fda7b08

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Thu Jun  9 16:40:21 2011 +0200

sbc tools:  use generic di XMLRPC command (no need for direct_export)

---

 apps/sbc/tools/sems-sbc-get-activeprofile   |    2 +-
 apps/sbc/tools/sems-sbc-get-regex-map-names |    2 +-
 apps/sbc/tools/sems-sbc-list-profiles       |    2 +-
 apps/sbc/tools/sems-sbc-load-profile        |    2 +-
 apps/sbc/tools/sems-sbc-reload-profile      |    2 +-
 apps/sbc/tools/sems-sbc-reload-profiles     |    2 +-
 apps/sbc/tools/sems-sbc-set-activeprofile   |    2 +-
 apps/sbc/tools/sems-sbc-set-regex-map       |    2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/apps/sbc/tools/sems-sbc-get-activeprofile 
b/apps/sbc/tools/sems-sbc-get-activeprofile
index eaf93c7..409d2e5 100755
--- a/apps/sbc/tools/sems-sbc-get-activeprofile
+++ b/apps/sbc/tools/sems-sbc-get-activeprofile
@@ -4,4 +4,4 @@
 from xmlrpclib import *
 s = ServerProxy('http://localhost:8090')
 print "Active calls: %d" % s.calls()
-print s.getActiveProfile()
+print s.di('sbc','getActiveProfile')
diff --git a/apps/sbc/tools/sems-sbc-get-regex-map-names 
b/apps/sbc/tools/sems-sbc-get-regex-map-names
index 9bb896c..f00a8c2 100755
--- a/apps/sbc/tools/sems-sbc-get-regex-map-names
+++ b/apps/sbc/tools/sems-sbc-get-regex-map-names
@@ -4,4 +4,4 @@ import sys
 from xmlrpclib import *
 
 s = ServerProxy('http://localhost:8090')
-print s.getRegexMapNames()
+print s.di('sbc','getRegexMapNames')
diff --git a/apps/sbc/tools/sems-sbc-list-profiles 
b/apps/sbc/tools/sems-sbc-list-profiles
index 5ebacc0..adfaff2 100755
--- a/apps/sbc/tools/sems-sbc-list-profiles
+++ b/apps/sbc/tools/sems-sbc-list-profiles
@@ -4,4 +4,4 @@
 from xmlrpclib import *
 s = ServerProxy('http://localhost:8090')
 print "Active calls: %d" % s.calls()
-print s.listProfiles()
+print s.di('sbc','listProfiles')
diff --git a/apps/sbc/tools/sems-sbc-load-profile 
b/apps/sbc/tools/sems-sbc-load-profile
index cdecba4..8346f6c 100755
--- a/apps/sbc/tools/sems-sbc-load-profile
+++ b/apps/sbc/tools/sems-sbc-load-profile
@@ -10,4 +10,4 @@ if len(sys.argv) != 3:
 s = ServerProxy('http://localhost:8090')
 print "Active calls: %d" % s.calls()
 p ={ 'name' : sys.argv[1], 'path' : sys.argv[2] }
-print s.loadProfile(p)
+print s.di('sbc','loadProfile',p)
diff --git a/apps/sbc/tools/sems-sbc-reload-profile 
b/apps/sbc/tools/sems-sbc-reload-profile
index 826bc37..449e05b 100755
--- a/apps/sbc/tools/sems-sbc-reload-profile
+++ b/apps/sbc/tools/sems-sbc-reload-profile
@@ -10,4 +10,4 @@ if len(sys.argv) != 2:
 s = ServerProxy('http://localhost:8090')
 print "Active calls: %d" % s.calls()
 p ={ 'name' : sys.argv[1] }
-print s.reloadProfile(p)
+print s.di('sbc','reloadProfile',p)
diff --git a/apps/sbc/tools/sems-sbc-reload-profiles 
b/apps/sbc/tools/sems-sbc-reload-profiles
index b113a9a..c4dbf6c 100755
--- a/apps/sbc/tools/sems-sbc-reload-profiles
+++ b/apps/sbc/tools/sems-sbc-reload-profiles
@@ -4,4 +4,4 @@
 from xmlrpclib import *
 s = ServerProxy('http://localhost:8090')
 print s.calls()
-print s.reloadProfiles()
+print s.di('sbc','reloadProfiles')
diff --git a/apps/sbc/tools/sems-sbc-set-activeprofile 
b/apps/sbc/tools/sems-sbc-set-activeprofile
index bf76ee8..44d8d0a 100755
--- a/apps/sbc/tools/sems-sbc-set-activeprofile
+++ b/apps/sbc/tools/sems-sbc-set-activeprofile
@@ -9,4 +9,4 @@ if len(sys.argv) != 2:
 
 s = ServerProxy('http://localhost:8090')
 print "Active calls: %d" % s.calls()
-print s.setActiveProfile(sys.argv[1])
+print s.di('sbc','setActiveProfile',sys.argv[1])
diff --git a/apps/sbc/tools/sems-sbc-set-regex-map 
b/apps/sbc/tools/sems-sbc-set-regex-map
index 3581332..1e58d70 100755
--- a/apps/sbc/tools/sems-sbc-set-regex-map
+++ b/apps/sbc/tools/sems-sbc-set-regex-map
@@ -10,4 +10,4 @@ if len(sys.argv) != 3:
 s = ServerProxy('http://localhost:8090')
 print "Active calls: %d" % s.calls()
 p ={ 'name' : sys.argv[1], 'file' : sys.argv[2] }
-print s.setRegexMap(p)
+print s.di('sbc','setRegexMap',p)

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to