mirror of https://github.com/sipwise/sems.git
parent
f569d0369a
commit
87569ffae3
@ -0,0 +1,15 @@
|
||||
COREPATH_TOOLS ?= ../../../core
|
||||
include $(COREPATH_TOOLS)/../Makefile.defs
|
||||
|
||||
monitoring_scripts = $(wildcard sems-*)
|
||||
|
||||
all: install_tools
|
||||
install: install_tools
|
||||
|
||||
install_tools: $(DESTDIR)$(bin-prefix)/$(bin-dir)
|
||||
-@for r in $(monitoring_scripts) ; do \
|
||||
$(INSTALL-TOUCH) $(DESTDIR)$(bin-prefix)/$(bin-dir)/$$r ; \
|
||||
$(INSTALL-BIN) $$r $(DESTDIR)$(bin-prefix)/$(bin-dir) ; \
|
||||
done
|
||||
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
from xmlrpclib import *
|
||||
import sys
|
||||
|
||||
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()
|
||||
print s.di('monitoring','get', sys.argv[1])
|
||||
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from xmlrpclib import *
|
||||
s = ServerProxy('http://localhost:8090')
|
||||
print "Active calls: %d" % s.calls()
|
||||
print s.di('monitoring','listActive')
|
||||
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from xmlrpclib import *
|
||||
s = ServerProxy('http://localhost:8090')
|
||||
print "Active calls: %d" % s.calls()
|
||||
print s.di('monitoring','list')
|
||||
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from xmlrpclib import *
|
||||
s = ServerProxy('http://localhost:8090')
|
||||
print "Active calls: %d" % s.calls()
|
||||
print s.di('monitoring','listFinished')
|
||||
Loading…
Reference in new issue