Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH 1/2] test: Rename script hangup-active to hangup
@ 2012-07-30 15:45 Guillaume Zajac
  2012-07-30 15:45 ` [PATCH 2/2] test: Tweak hangup script to clear waiting active and held calls Guillaume Zajac
  2012-07-30 16:46 ` [PATCH 1/2] test: Rename script hangup-active to hangup Marcel Holtmann
  0 siblings, 2 replies; 4+ messages in thread
From: Guillaume Zajac @ 2012-07-30 15:45 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2203 bytes --]

---
 Makefile.am        |    2 +-
 test/hangup        |   29 +++++++++++++++++++++++++++++
 test/hangup-active |   29 -----------------------------
 3 files changed, 30 insertions(+), 30 deletions(-)
 create mode 100755 test/hangup
 delete mode 100755 test/hangup-active

diff --git a/Makefile.am b/Makefile.am
index 4410043..a3681c3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -554,7 +554,7 @@ test_scripts = test/backtrace \
 		test/enter-pin \
 		test/reset-pin \
 		test/hangup-all \
-		test/hangup-active \
+		test/hangup \
 		test/set-mms-details \
 		test/set-roaming-allowed \
 		test/list-contexts \
diff --git a/test/hangup b/test/hangup
new file mode 100755
index 0000000..6444b23
--- /dev/null
+++ b/test/hangup
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+
+import sys
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object('org.ofono', '/'),
+						'org.ofono.Manager')
+
+modems = manager.GetModems()
+path = modems[0][0]
+
+manager = dbus.Interface(bus.get_object('org.ofono', path),
+						'org.ofono.VoiceCallManager')
+
+calls = manager.GetCalls()
+
+for path, properties in calls:
+		state = properties["State"]
+		print "[ %s ] %s" % (path, state)
+
+		if state != "active":
+			continue
+
+		call = dbus.Interface(bus.get_object('org.ofono', path),
+						'org.ofono.VoiceCall')
+
+		call.Hangup()
diff --git a/test/hangup-active b/test/hangup-active
deleted file mode 100755
index 6444b23..0000000
--- a/test/hangup-active
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/python
-
-import sys
-import dbus
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object('org.ofono', '/'),
-						'org.ofono.Manager')
-
-modems = manager.GetModems()
-path = modems[0][0]
-
-manager = dbus.Interface(bus.get_object('org.ofono', path),
-						'org.ofono.VoiceCallManager')
-
-calls = manager.GetCalls()
-
-for path, properties in calls:
-		state = properties["State"]
-		print "[ %s ] %s" % (path, state)
-
-		if state != "active":
-			continue
-
-		call = dbus.Interface(bus.get_object('org.ofono', path),
-						'org.ofono.VoiceCall')
-
-		call.Hangup()
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-30 16:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30 15:45 [PATCH 1/2] test: Rename script hangup-active to hangup Guillaume Zajac
2012-07-30 15:45 ` [PATCH 2/2] test: Tweak hangup script to clear waiting active and held calls Guillaume Zajac
2012-07-30 16:50   ` Marcel Holtmann
2012-07-30 16:46 ` [PATCH 1/2] test: Rename script hangup-active to hangup Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox