From: Sean Bright Date: Thu, 13 May 2021 02:20:23 +0000 (-0400) Subject: chan_pjsip: Correct misleading trace message X-Git-Tag: 19.0.0-rc1~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b41629447540a7f953c8d590a04efbef28b2e55;p=thirdparty%2Fasterisk.git chan_pjsip: Correct misleading trace message ASTERISK-29358 #close Change-Id: I050daff67066873df4e8fc7f4bd977c1ca06e647 --- 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);