Commit 5cff5beb authored by Simon Morlat's avatar Simon Morlat

fix bad enum cast and invalid enum translation

parent 1a05114e
......@@ -882,7 +882,7 @@ static void text_received(SalOp *op, const SalMessage *msg){
if (lc->chat_deny_code==LinphoneReasonNone && is_duplicate_msg(lc,msg->message_id)==FALSE){
if (!call) sal_op_release(op);
......@@ -1100,9 +1100,9 @@ int linphone_core_get_local_ip_for(int type, const char *dest, char *result){
SalReason linphone_reason_to_sal(LinphoneReason reason){
case LinphoneReasonNone:
return SalReasonUnknown;
return SalReasonNone;
case LinphoneReasonNoResponse:
return SalReasonUnknown;
return SalReasonRequestTimeout;
case LinphoneReasonForbidden:
return SalReasonForbidden;
case LinphoneReasonDeclined:
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