Commit 8469ebcf authored by Benjamin REIS's avatar Benjamin REIS

default reason only if protocol not set

parent 94fa1c9a
......@@ -850,7 +850,7 @@ static void call_terminated(SalOp *op, const char *from){
case LinphoneCallIncomingReceived:
case LinphoneCallIncomingEarlyMedia:
if(sal_op_get_reason_error_info(op)->reason != SalReasonNone) {
if(sal_op_get_reason_error_info(op)->protocol && strcmp(sal_op_get_reason_error_info(op)->protocol, "") == 0) {
linphone_error_info_set(call->ei,NULL, LinphoneReasonNotAnswered, 0, "Incoming call cancelled", NULL);
call->non_op_error = TRUE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment