mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
print reason for call ended
This commit is contained in:
parent
979abad905
commit
438ebe84a1
2 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue