diff options
Diffstat (limited to 'test/hangup-all')
-rwxr-xr-x | test/hangup-all | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/hangup-all b/test/hangup-all new file mode 100755 index 00000000..d75a29c6 --- /dev/null +++ b/test/hangup-all @@ -0,0 +1,18 @@ +#!/usr/bin/python + +import sys +import dbus + +bus = dbus.SystemBus() + +manager = dbus.Interface(bus.get_object('org.ofono', '/'), + 'org.ofono.Manager') + +properties = manager.GetProperties() + +path = properties["Modems"][0] + +manager = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.VoiceCallManager') + +manager.HangupAll() |