From 873df548f605d76251421d5053c3bee0dc2e3b85 Mon Sep 17 00:00:00 2001 From: Guillaume Zajac Date: Mon, 6 Aug 2012 17:42:36 +0200 Subject: test: Add hangup-call script for GCF testing --- test/hangup-call | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 test/hangup-call (limited to 'test') diff --git a/test/hangup-call b/test/hangup-call new file mode 100755 index 00000000..4c46ec04 --- /dev/null +++ b/test/hangup-call @@ -0,0 +1,14 @@ +#!/usr/bin/python + +import sys +import dbus + +bus = dbus.SystemBus() + +if (len(sys.argv) < 2): + print "Usage: %s [ Call Path ]" % (sys.argv[0]) + sys.exit(1) + +call = dbus.Interface(bus.get_object('org.ofono', sys.argv[1]), + 'org.ofono.VoiceCall') +call.Hangup() -- cgit v1.2.3