Allow sending DTMF tones in alerting state

2nd stage dialing may be done before call gets connected.
This commit is contained in:
Pekka Pessi 2009-10-08 19:59:53 +03:00 committed by Denis Kenzior
parent 72d68e5001
commit 0063db3a74
1 changed files with 5 additions and 1 deletions

View File

@ -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;