Merge "chan_pjsip: add a flag to ignore 183 responses if no SDP present" into 13

This commit is contained in:
Friendly Automation
2019-03-11 08:49:46 -05:00
committed by Gerrit Code Review
7 changed files with 75 additions and 1 deletions

View File

@@ -2742,7 +2742,14 @@ static void chan_pjsip_incoming_response(struct ast_sip_session *session, struct
ast_channel_unlock(session->channel);
break;
case 183:
ast_queue_control(session->channel, AST_CONTROL_PROGRESS);
if (session->endpoint->ignore_183_without_sdp) {
pjsip_rdata_sdp_info *sdp = pjsip_rdata_get_sdp_info(rdata);
if (sdp && sdp->body.ptr) {
ast_queue_control(session->channel, AST_CONTROL_PROGRESS);
}
} else {
ast_queue_control(session->channel, AST_CONTROL_PROGRESS);
}
break;
case 200:
ast_queue_control(session->channel, AST_CONTROL_ANSWER);