From 89d77da83307772bbfa86d79790edf9aabd6a523 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 16 Aug 2010 17:07:28 +0200 Subject: Add simple test script to cancel USSD transactions --- test/cancel-ussd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 test/cancel-ussd (limited to 'test/cancel-ussd') diff --git a/test/cancel-ussd b/test/cancel-ussd new file mode 100755 index 00000000..3bccb981 --- /dev/null +++ b/test/cancel-ussd @@ -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] + +ussd = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.SupplementaryServices') + +ussd.Cancel() -- cgit v1.2.3