You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/monitoring/tools/sems-get-callproperties

15 lines
374 B

#!/usr/bin/python
# -*- coding: utf-8 -*-
from xmlrpclib import *
import sys
import pprint
if len(sys.argv) != 2:
print "usage: %s <ltag/ID of call to list>" % sys.argv[0]
sys.exit(1)
s = ServerProxy('http://localhost:8090')
print "Active calls: %d" % s.calls()
pp = pprint.PrettyPrinter(indent=4)
res = s.di('monitoring','get', sys.argv[1])
pp.pprint(res)