mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 21:58:08 +00:00
linphonecall.c: display error if SDP negotiation fails
This commit is contained in:
parent
1213a64a64
commit
c747a8da64
2 changed files with 10 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -92,3 +92,4 @@ tester/ZIDCache*.xml
|
|||
tester/stereo-record.wav
|
||||
.dirstamp
|
||||
git-clang-format.diff
|
||||
*.log
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue