From 99d10bfc2ccd95984760c17ba3055c086b2c04c1 Mon Sep 17 00:00:00 2001 From: Dara Spieker-Doyle Date: Thu, 13 Jan 2011 12:19:12 -0800 Subject: test: Add CDMA MO Call Support scripts --- test/cdma-list-call | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 test/cdma-list-call (limited to 'test/cdma-list-call') diff --git a/test/cdma-list-call b/test/cdma-list-call new file mode 100755 index 00000000..c941383c --- /dev/null +++ b/test/cdma-list-call @@ -0,0 +1,25 @@ +#!/usr/bin/python + +import dbus + +bus = dbus.SystemBus() + +manager = dbus.Interface(bus.get_object('org.ofono', '/'), + 'org.ofono.Manager') + +modems = manager.GetModems() + +for path, properties in modems: + print "[ %s ]" % (path) + + if "org.ofono.cdma.VoiceCallManager" not in properties["Interfaces"]: + continue + + mgr = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.cdma.VoiceCallManager') + + properties = mgr.GetProperties() + + for key in properties.keys(): + val = str(properties[key]) + print " %s = %s" % (key, val) -- cgit v1.2.3