Add missing busy test on call failure

This commit is contained in:
Yann Diorcet 2013-01-30 10:49:02 +01:00
parent 0a7832f19e
commit 3b722ada22

View file

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