From c747a8da64d684cba28f80c7222b9e69a4b059d2 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 18 Sep 2015 17:06:53 +0200 Subject: [PATCH] linphonecall.c: display error if SDP negotiation fails --- .gitignore | 1 + coreapi/linphonecall.c | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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: