From 1b41629447540a7f953c8d590a04efbef28b2e55 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Wed, 12 May 2021 22:20:23 -0400 Subject: [PATCH] chan_pjsip: Correct misleading trace message ASTERISK-29358 #close Change-Id: I050daff67066873df4e8fc7f4bd977c1ca06e647 --- channels/chan_pjsip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c index 773471d8ef..8785bfa9fb 100644 --- a/channels/chan_pjsip.c +++ b/channels/chan_pjsip.c @@ -3211,15 +3211,16 @@ static void chan_pjsip_incoming_response(struct ast_sip_session *session, struct break; } case 183: - ast_trace(-1, "%s: Queueing PROGRESS\n", ast_sip_session_get_name(session)); if (session->endpoint->ignore_183_without_sdp) { pjsip_rdata_sdp_info *sdp = pjsip_rdata_get_sdp_info(rdata); if (sdp && sdp->body.ptr) { + ast_trace(-1, "%s: Queueing PROGRESS\n", ast_sip_session_get_name(session)); ast_trace(1, "%s Method: %.*s Status: %d Queueing PROGRESS with SDP\n", ast_sip_session_get_name(session), (int)rdata->msg_info.cseq->method.name.slen, rdata->msg_info.cseq->method.name.ptr, status.code); ast_queue_control(session->channel, AST_CONTROL_PROGRESS); } } else { + ast_trace(-1, "%s: Queueing PROGRESS\n", ast_sip_session_get_name(session)); ast_trace(1, "%s Method: %.*s Status: %d Queueing PROGRESS without SDP\n", ast_sip_session_get_name(session), (int)rdata->msg_info.cseq->method.name.slen, rdata->msg_info.cseq->method.name.ptr, status.code); ast_queue_control(session->channel, AST_CONTROL_PROGRESS);