diff --git a/console/linphonec.c b/console/linphonec.c index 5f7abf38b..40a243607 100644 --- a/console/linphonec.c +++ b/console/linphonec.c @@ -328,7 +328,7 @@ static void linphonec_call_state_changed(LinphoneCore *lc, LinphoneCall *call, L long id=(long)linphone_call_get_user_pointer (call); switch(st){ case LinphoneCallEnd: - linphonec_out("Call %i with %s ended.\n", id, from); + linphonec_out("Call %i with %s ended (%s).\n", id, from, linphone_reason_to_string(linphone_call_get_reason(call))); break; case LinphoneCallResuming: linphonec_out("Resuming call %i with %s.\n", id, from); diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 2b8eb73e6..7504749ea 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -4078,7 +4078,7 @@ LinphoneCallParams *linphone_core_create_default_call_parameters(LinphoneCore *l return p; } -const char *linphone_error_to_string(LinphoneReason err){ +const char *linphone_reason_to_string(LinphoneReason err){ switch(err){ case LinphoneReasonNone: return "No error"; @@ -4091,6 +4091,10 @@ const char *linphone_error_to_string(LinphoneReason err){ } return "unknown error"; } + +const char *linphone_error_to_string(LinphoneReason err){ + return linphone_reason_to_string(err); +} /** * Enables signaling keep alive */