From: Pekka Pessi <ppessi@gmail.com>
To: ofono@ofono.org
Subject: [PATCH] voicecall: allow sending DTMF tones while call is in alerting state
Date: Thu, 08 Oct 2009 19:59:53 +0300 [thread overview]
Message-ID: <1255021194-31138-2-git-send-email-ppessi@gmail.com> (raw)
In-Reply-To: <1255021194-31138-1-git-send-email-ppessi@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 914 bytes --]
From: Pekka Pessi <Pekka.Pessi@nokia.com>
2nd stage dialing may be done before call gets connected.
---
src/voicecall.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/voicecall.c b/src/voicecall.c
index 1be907a..bd5358c 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -138,7 +138,7 @@ static const char *call_status_to_string(int status)
case CALL_STATUS_DIALING:
return "dialing";
case CALL_STATUS_ALERTING:
- return "alerting";
+ return "alerting";
case CALL_STATUS_INCOMING:
return "incoming";
case CALL_STATUS_WAITING:
@@ -561,6 +561,10 @@ static gboolean voicecalls_have_connected(struct ofono_voicecall *vc)
if (v->call->status == CALL_STATUS_ACTIVE)
return TRUE;
+
+ /* Connected for 2nd stage dialing */
+ if (v->call->status == CALL_STATUS_ALERTING)
+ return TRUE;
}
return FALSE;
--
1.6.0.4
next prev parent reply other threads:[~2009-10-08 16:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-08 16:59 [PATCH] voicecall.c: use swap_without_accept method, if present Pekka Pessi
2009-10-08 16:59 ` Pekka Pessi [this message]
2009-10-08 16:59 ` [PATCH] voicecall: allow P or , within the dial string Pekka Pessi
2009-10-08 17:29 ` Denis Kenzior
2009-10-08 19:30 ` Pekka Pessi
2009-10-08 20:37 ` Denis Kenzior
2009-10-09 2:30 ` Pekka Pessi
2009-10-09 6:22 ` Denis Kenzior
2009-10-08 18:02 ` [PATCH] voicecall: allow sending DTMF tones while call is in alerting state Denis Kenzior
2009-10-08 18:01 ` [PATCH] voicecall.c: use swap_without_accept method, if present Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1255021194-31138-2-git-send-email-ppessi@gmail.com \
--to=ppessi@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox