Module: sems
Branch: master
Commit: 58a121e8580a1e4ffcb741df9c9c2b158b8840dc
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=58a121e8580a1e4ffcb741df9c9c2b158b8840dc

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Thu Apr  5 19:25:18 2012 +0200

monitoring: using pretty print to print call properties

---

 apps/monitoring/tools/sems-get-callproperties |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/apps/monitoring/tools/sems-get-callproperties 
b/apps/monitoring/tools/sems-get-callproperties
index 4daa629..4080ed8 100755
--- a/apps/monitoring/tools/sems-get-callproperties
+++ b/apps/monitoring/tools/sems-get-callproperties
@@ -2,6 +2,7 @@
 # -*- 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]
@@ -9,4 +10,6 @@ if len(sys.argv) != 2:
 
 s = ServerProxy('http://localhost:8090')
 print "Active calls: %d" % s.calls()
-print s.di('monitoring','get', sys.argv[1])
+pp = pprint.PrettyPrinter(indent=4)
+res = s.di('monitoring','get', sys.argv[1])
+pp.pprint(res)
\ No newline at end of file

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to