chan_pjsip: Correct misleading trace message

ASTERISK-29358 #close

Change-Id: I050daff67066873df4e8fc7f4bd977c1ca06e647
This commit is contained in:
Sean Bright
2021-05-12 22:16:45 -04:00
parent 0b4b207076
commit f557126998

View File

@@ -3174,13 +3174,14 @@ 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_queue_control(session->channel, AST_CONTROL_PROGRESS);
}
} else {
ast_trace(-1, "%s: Queueing PROGRESS\n", ast_sip_session_get_name(session));
ast_queue_control(session->channel, AST_CONTROL_PROGRESS);
}
break;