diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-04-23 15:18:08 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-04-23 15:18:41 -0500 |
commit | fe1ced212f8c2c4598a8431ff361e227aded7ab2 (patch) | |
tree | 2d8e63f38bf30a611c5b56d3ccec71dfff3b0a06 /test/release-and-answer | |
parent | 8fb761efb0209d3349b4c06345a5f026cfd162b1 (diff) | |
download | ofono-fe1ced212f8c2c4598a8431ff361e227aded7ab2.tar.bz2 |
test: Add test script for ReleaseAndAnswer
Diffstat (limited to 'test/release-and-answer')
-rwxr-xr-x | test/release-and-answer | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/release-and-answer b/test/release-and-answer new file mode 100755 index 00000000..10570ce7 --- /dev/null +++ b/test/release-and-answer @@ -0,0 +1,22 @@ +#!/usr/bin/python + +import dbus + +bus = dbus.SystemBus() + +manager = dbus.Interface(bus.get_object('org.ofono', '/'), + 'org.ofono.Manager') + +modems = manager.GetModems() + +for path, properties in modems: + print "[ %s ]" % (path) + + if "org.ofono.VoiceCallManager" not in properties["Interfaces"]: + continue + + mgr = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.VoiceCallManager') + + mgr.ReleaseAndAnswer() + break |