summaryrefslogtreecommitdiffstats
path: root/test/cancel-ussd
diff options
context:
space:
mode:
Diffstat (limited to 'test/cancel-ussd')
-rwxr-xr-xtest/cancel-ussd18
1 files changed, 18 insertions, 0 deletions
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()