lc->vtable.display_status(lc,msg480);
break;
case SalReasonNotFound:
- msg=_("Not found");
if (lc->vtable.display_status)
lc->vtable.display_status(lc,msg);
break;
lc->ringstream=NULL;
}
linphone_call_stop_media_streams (call);
- if (sr!=SalReasonDeclined) linphone_call_set_state(call,LinphoneCallError,msg);
- else{
+ if (sr == SalReasonDeclined) {
call->reason=LinphoneReasonDeclined;
linphone_call_set_state(call,LinphoneCallEnd,"Call declined.");
+ } else if (sr == SalReasonNotFound) {
+ call->reason=LinphoneReasonNotFound;
+ linphone_call_set_state(call,LinphoneCallError,"User not found.");
+ } else {
+ linphone_call_set_state(call,LinphoneCallError,msg);
}
}
return "Bad credentials";
case LinphoneReasonDeclined:
return "Call declined";
+ case LinphoneReasonNotFound:
+ return "User not found";
}
return "unknown error";
}
LinphoneReasonNoResponse, /**<No response received from remote*/
LinphoneReasonBadCredentials, /**<Authentication failed due to bad or missing credentials*/
LinphoneReasonDeclined, /**<The call has been declined*/
+ LinphoneReasonNotFound,
};
typedef enum _LinphoneReason LinphoneReason;