mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
chan_pjsip: add allow_sending_180_after_183 option
added new global config option "allow_sending_180_after_183" that if enabled will preserve 180 after a 183 ASTERISK-29842 Change-Id: I8a53f8c35595b6d16d8e86e241b5f110d92f3d18
This commit is contained in:
committed by
Kevin Harwell
parent
73fb22714e
commit
9ffc2f711c
@@ -1630,8 +1630,12 @@ static int chan_pjsip_indicate(struct ast_channel *ast, int condition, const voi
|
||||
if (channel->session->endpoint->inband_progress ||
|
||||
(channel->session->inv_session && channel->session->inv_session->neg &&
|
||||
pjmedia_sdp_neg_get_state(channel->session->inv_session->neg) == PJMEDIA_SDP_NEG_STATE_DONE)) {
|
||||
response_code = 183;
|
||||
res = -1;
|
||||
if (ast_sip_get_allow_sending_180_after_183()) {
|
||||
response_code = 180;
|
||||
} else {
|
||||
response_code = 183;
|
||||
}
|
||||
} else {
|
||||
response_code = 180;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user