print reason for call ended

This commit is contained in:
Simon Morlat 2011-06-03 09:39:41 +02:00
parent 979abad905
commit 438ebe84a1
2 changed files with 6 additions and 2 deletions

View file

@ -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);

View file

@ -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
*/