From b26d8155292057e4acf400dc8e40f321e6137a7b Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Mon, 25 Feb 2019 11:38:08 +0000 Subject: [PATCH] Add indication of dacp-id, source and self IP numbers to some diagnostics. --- rtsp.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rtsp.c b/rtsp.c index 6279d7a1..923f4ee7 100644 --- a/rtsp.c +++ b/rtsp.c @@ -986,8 +986,10 @@ void handle_setup(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) { msg_add_header(resp, "Session", "1"); resp->respcode = 200; // it all worked out okay - debug(1, "Connection %d: SETUP with UDP ports Control: %d, Timing: %d and Audio: %d.", - conn->connection_number, conn->local_control_port, conn->local_timing_port, + debug(1, "Connection %d: SETUP DACP-ID \"%s\" from %s to %s with UDP ports Control: %d, Timing: %d and Audio: %d.", + conn->connection_number, + conn->dacp_id, &conn->client_ip_string, &conn->self_ip_string, + conn->local_control_port, conn->local_timing_port, conn->local_audio_port); } else { @@ -1882,8 +1884,10 @@ static void handle_announce(rtsp_conn_info *conn, rtsp_message *req, rtsp_messag resp->respcode = 200; } else { resp->respcode = 453; - debug(1, "Connection %d: failed because a connection is already playing.", - conn->connection_number); + debug(1, "Connection %d: DACP-ID \"%s\" on %s failed because a connection is already playing.", + conn->connection_number, + conn->dacp_id, + conn->client_ip_string); } out: