All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] test: Find the active call and do hangup on that.
@ 2011-02-03 13:14 Marit Henriksen
  2011-02-03 16:20 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Marit Henriksen @ 2011-02-03 13:14 UTC (permalink / raw)
  To: ofono

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

From: Marit Henriksen <marit.henriksen@stericsson.com>

---
 test/hangup-active |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/test/hangup-active b/test/hangup-active
index 52dd2c6..6444b23 100755
--- a/test/hangup-active
+++ b/test/hangup-active
@@ -15,9 +15,15 @@ manager = dbus.Interface(bus.get_object('org.ofono', path),
 						'org.ofono.VoiceCallManager')
 
 calls = manager.GetCalls()
-path = calls[0][0]
 
-call = dbus.Interface(bus.get_object('org.ofono', path),
+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()
+		call.Hangup()
-- 
1.7.1


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

* Re: [PATCH] test: Find the active call and do hangup on that.
  2011-02-03 13:14 [PATCH] test: Find the active call and do hangup on that Marit Henriksen
@ 2011-02-03 16:20 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2011-02-03 16:20 UTC (permalink / raw)
  To: ofono

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

Hi Marit,

On 02/03/2011 07:14 AM, Marit Henriksen wrote:
> From: Marit Henriksen <marit.henriksen@stericsson.com>
> 
> ---
>  test/hangup-active |   12 +++++++++---
>  1 files changed, 9 insertions(+), 3 deletions(-)
> 

Patch has been applied, thanks.

Regards,
-Denis

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

end of thread, other threads:[~2011-02-03 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-03 13:14 [PATCH] test: Find the active call and do hangup on that Marit Henriksen
2011-02-03 16:20 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.