From 9ca225f8e7e3efa3648725bd6a7ad101624bce34 Mon Sep 17 00:00:00 2001 From: Guillaume Zajac Date: Fri, 3 Aug 2012 16:50:01 +0200 Subject: [PATCH] test: Add hangup-multiparty script for GCF testing --- Makefile.am | 3 ++- test/hangup-multiparty | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) 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() -- 2.7.4