All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] voicecall: fix release and answer existing call validation
@ 2012-04-19 22:10 Mike Brudevold
  2012-04-19 13:42 ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Brudevold @ 2012-04-19 22:10 UTC (permalink / raw)
  To: ofono

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

From: Michael Brudevold <michael.brudevold@logicpd.com>

Release and answer should be allowed when there are held calls as well as the
existing check for waiting calls.  Most implementations use AT+CHLD=1 which
will resume the other call, be it waiting or held.  This follows the HFP,
GSM 07.07 and 3GPP 27.007 specs.
---
 src/voicecall.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/voicecall.c b/src/voicecall.c
index 263f1ee..2d261bf 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -1684,7 +1684,7 @@ static DBusMessage *manager_release_and_answer(DBusConnection *conn,
 	if (vc->pending || vc->dial_req || vc->pending_em)
 		return __ofono_error_busy(msg);
 
-	if (!voicecalls_have_waiting(vc))
+	if (!(voicecalls_have_waiting(vc) || voicecalls_have_held(vc)))
 		return __ofono_error_failed(msg);
 
 	if (vc->driver->release_all_active == NULL)
-- 
1.7.5.4


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

end of thread, other threads:[~2012-04-21  1:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-19 22:10 [PATCH] voicecall: fix release and answer existing call validation Mike Brudevold
2012-04-19 13:42 ` Denis Kenzior
2012-04-21  1:34   ` Mike

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.