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

diff --git a/Makefile.am b/Makefile.am
index b35cf1f..4410043 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -622,7 +622,8 @@ test_scripts = test/backtrace \
                test/set-context-property \
                test/test-gnss \
                test/swap-calls \
-               test/release-and-answer
+               test/release-and-answer \
+               test/hold-and-answer
 
 if TEST
 testdir = $(pkglibdir)/test
diff --git a/test/hold-and-answer b/test/hold-and-answer
new file mode 100755
index 0000000..2c47e27
--- /dev/null
+++ b/test/hold-and-answer
@@ -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.HoldAndAnswer(timeout=100)
-- 
1.7.5.4

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to