summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
authorPekka Pessi <Pekka.Pessi@nokia.com>2009-10-08 19:59:53 +0300
committerDenis Kenzior <denkenz@gmail.com>2009-10-08 12:55:41 -0500
commit0063db3a74bfb593d35c28195aa2837722da0306 (patch)
tree94b60d0c1bb448c031f6e4afc712dcf50fbe45cb /src/voicecall.c
parent72d68e5001b5cfc0baceb491406c9ae607087b1a (diff)
downloadofono-0063db3a74bfb593d35c28195aa2837722da0306.tar.bz2
Allow sending DTMF tones in alerting state
2nd stage dialing may be done before call gets connected.
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 1be907a4..bd5358c8 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;