From 6aea593e2a556a558092a50ed347bf409fda7b08 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Thu, 9 Jun 2011 16:40:21 +0200 Subject: [PATCH] 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 eaf93c7b..409d2e5a 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 9bb896c1..f00a8c24 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 5ebacc0e..adfaff2f 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 cdecba47..8346f6ca 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 826bc37d..449e05bb 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 b113a9a4..c4dbf6cc 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 bf76ee8c..44d8d0ad 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 3581332b..1e58d70a 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)