]> sjero.net Git - linphone/commitdiff
print reason for call ended
authorSimon Morlat <simon.morlat@linphone.org>
Fri, 3 Jun 2011 07:39:41 +0000 (09:39 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Fri, 3 Jun 2011 07:39:41 +0000 (09:39 +0200)
console/linphonec.c
coreapi/linphonecore.c

index 5f7abf38b9c9d2ff0c17bf7a01bf6ec21a208f33..40a243607c10adedfedde0d58e703d6427de2a6d 100644 (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);
index 2b8eb73e6d84ab9c80aa7a3c751a4f6de4174723..7504749eaf9ca49597fa1c128979a87f60a45084 100644 (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
  */