Module: sems Branch: master Commit: 290df86de5ac6404b632d3cb84e0f02ef3f24e1b URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=290df86de5ac6404b632d3cb84e0f02ef3f24e1b
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 +- doc/Readme.sbc.txt | 4 ++-- 9 files changed, 10 insertions(+), 10 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) diff --git a/doc/Readme.sbc.txt b/doc/Readme.sbc.txt index dd12b90..809fb19 100644 --- a/doc/Readme.sbc.txt +++ b/doc/Readme.sbc.txt @@ -85,8 +85,8 @@ is provided and installed to trigger the reload (through XMLRPC): sems-sbc-get-activeprofile get active_profile sems-sbc-set-activeprofile <active_profile> set active_profile -The xmlrpc2di module must be loaded, XMLRPC control server bound to port 8090, and -direct_export in xmlrpc2di.conf must include sbc for the scripts to work. +The xmlrpc2di module must be loaded and the XMLRPC control server bound to port 8090 for +the scripts to work. For tracking file revisions and changes, the MD5 hash sum is printed on profile load and reload, and returned as information by the scripts and the DI management commands. An MD5 _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
