---
 Makefile.am            |    3 ++-
 test/hangup-multiparty |   20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)
 create mode 100755 test/hangup-multiparty

diff --git a/Makefile.am b/Makefile.am
index 99d4ab0..7e8f12c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -624,7 +624,8 @@ test_scripts = test/backtrace \
                test/test-gnss \
                test/swap-calls \
                test/release-and-answer \
-               test/hold-and-answer
+               test/hold-and-answer \
+               test/hangup-multiparty
 
 if TEST
 testdir = $(pkglibdir)/test
diff --git a/test/hangup-multiparty b/test/hangup-multiparty
new file mode 100755
index 0000000..48fe342
--- /dev/null
+++ b/test/hangup-multiparty
@@ -0,0 +1,20 @@
+#!/usr/bin/python
+
+import sys
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object('org.ofono', '/'),
+                                               'org.ofono.Manager')
+
+modems = manager.GetModems()
+modem = modems[0][0]
+
+if (len(sys.argv) == 2):
+       modem = sys.argv[1]
+
+manager = dbus.Interface(bus.get_object('org.ofono', modem),
+                                               'org.ofono.VoiceCallManager')
+
+manager.HangupMultiparty()
-- 
1.7.5.4

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to