diff options
Diffstat (limited to 'test/cdma-hangup')
-rwxr-xr-x | test/cdma-hangup | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/cdma-hangup b/test/cdma-hangup new file mode 100755 index 00000000..493ece41 --- /dev/null +++ b/test/cdma-hangup @@ -0,0 +1,20 @@ +#!/usr/bin/python + +import sys +import dbus + +bus = dbus.SystemBus() + +manager = dbus.Interface(bus.get_object('org.ofono', '/'), + 'org.ofono.Manager') + +if len(sys.argv) > 2: + path = sys.argv[1] +else: + modems = manager.GetModems() + path, properties = modems[0] + +manager = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.cdma.VoiceCallManager') + +manager.Hangup() |