From: Luiz Augusto von Dentz <luiz.dentz-von@xxxxxxxxx> --- audio/telephony-ofono.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/audio/telephony-ofono.c b/audio/telephony-ofono.c index babf38f..4f69673 100644 --- a/audio/telephony-ofono.c +++ b/audio/telephony-ofono.c @@ -263,9 +263,16 @@ void telephony_terminate_call_req(void *telephony_device) void telephony_answer_call_req(void *telephony_device) { - struct voice_call *vc = find_vc_with_status(CALL_STATUS_INCOMING); + struct voice_call *vc; int ret; + vc = find_vc_with_status(CALL_STATUS_INCOMING); + if (!vc) + vc = find_vc_with_status(CALL_STATUS_ALERTING); + + if (!vc) + vc = find_vc_with_status(CALL_STATUS_WAITING); + if (!vc) { telephony_answer_call_rsp(telephony_device, CME_ERROR_NOT_ALLOWED); -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html