summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/voicecall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index d2b8c388..20b6a7f4 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -1252,7 +1252,9 @@ void ofono_voicecall_disconnected(struct ofono_voicecall *vc, int id,
__ofono_modem_release_callid(modem, id);
- voicecall_emit_disconnect_reason(call, reason);
+ if (reason != OFONO_DISCONNECT_REASON_UNKNOWN)
+ voicecall_emit_disconnect_reason(call, reason);
+
voicecall_set_call_status(call, CALL_STATUS_DISCONNECTED);
if (prev_status == CALL_STATUS_INCOMING ||