diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2010-08-16 17:07:28 +0200 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2010-08-16 17:07:28 +0200 |
| commit | 89d77da83307772bbfa86d79790edf9aabd6a523 (patch) | |
| tree | d147fd8f13d37ad1096cd88cbad83f68fc34cc14 /test | |
| parent | 7e01bef1b47f8a27cae4e3af700713382c3abcd9 (diff) | |
| download | ofono-89d77da83307772bbfa86d79790edf9aabd6a523.tar.bz2 | |
Add simple test script to cancel USSD transactions
Diffstat (limited to 'test')
| -rwxr-xr-x | test/cancel-ussd | 18 |
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() |