]> sjero.net Git - linphone/blobdiff - console/linphonec.c
print reason for call ended
[linphone] / console / linphonec.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);