summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rwxr-xr-xtest/hangup-call14
2 files changed, 16 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 0c83775b..56f9b345 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -626,7 +626,8 @@ test_scripts = test/backtrace \
test/release-and-answer \
test/release-and-swap \
test/hold-and-answer \
- test/hangup-multiparty
+ test/hangup-multiparty \
+ test/hangup-call
if TEST
testdir = $(pkglibdir)/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()