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

sayer/1.4-spce2.6
Stefan Sayer 15 years ago
parent 695629cba1
commit 6aea593e2a

@ -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')

@ -4,4 +4,4 @@ import sys
from xmlrpclib import *
s = ServerProxy('http://localhost:8090')
print s.getRegexMapNames()
print s.di('sbc','getRegexMapNames')

@ -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')

@ -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)

@ -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)

@ -4,4 +4,4 @@
from xmlrpclib import *
s = ServerProxy('http://localhost:8090')
print s.calls()
print s.reloadProfiles()
print s.di('sbc','reloadProfiles')

@ -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])

@ -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)

Loading…
Cancel
Save