diff --git a/.gitignore b/.gitignore index b38bd2977..11bf7c54a 100644 --- a/.gitignore +++ b/.gitignore @@ -92,3 +92,4 @@ tester/ZIDCache*.xml tester/stereo-record.wav .dirstamp git-clang-format.diff +*.log diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 741f59b82..272b2eb84 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -1336,7 +1336,15 @@ void linphone_call_set_state(LinphoneCall *call, LinphoneCallState cstate, const break; case LinphoneCallStreamsRunning: if (call->prevstate == LinphoneCallUpdating || call->prevstate == LinphoneCallUpdatedByRemote) { - linphone_core_notify_display_status(lc,_("Call parameters were successfully modified.")); + LinphoneReason reason = linphone_call_get_reason(call); + char *msg; + if (reason != LinphoneReasonNone) { + msg = ms_strdup(_("Call parameters were successfully modified.")); + } else { + msg = ms_strdup_printf(_("Call parameters could not be modified: %s."), linphone_reason_to_string(reason)); + } + linphone_core_notify_display_status(lc, msg); + ms_free(msg); } break; default: