From 3b722ada225c8adfcb19a0784f05288f8abfcada Mon Sep 17 00:00:00 2001 From: Yann Diorcet Date: Wed, 30 Jan 2013 10:49:02 +0100 Subject: [PATCH] Add missing busy test on call failure --- coreapi/callbacks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreapi/callbacks.c b/coreapi/callbacks.c index 948fc720b..8baad9af2 100644 --- a/coreapi/callbacks.c +++ b/coreapi/callbacks.c @@ -651,6 +651,9 @@ static void call_failure(SalOp *op, SalError error, SalReason sr, const char *de } else if (sr == SalReasonNotFound) { call->reason=LinphoneReasonNotFound; linphone_call_set_state(call,LinphoneCallError,"User not found."); + } else if (sr == SalReasonBusy) { + call->reason=LinphoneReasonBusy; + linphone_call_set_state(call,LinphoneCallError,"User is busy."); } else { linphone_call_set_state(call,LinphoneCallError,msg); }