mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 15:29:05 +00:00
Merge "pjsip: replace 180 by 183 if SDP negotiation has completed" into 13
This commit is contained in:
@@ -1363,7 +1363,9 @@ static int chan_pjsip_indicate(struct ast_channel *ast, int condition, const voi
|
|||||||
switch (condition) {
|
switch (condition) {
|
||||||
case AST_CONTROL_RINGING:
|
case AST_CONTROL_RINGING:
|
||||||
if (ast_channel_state(ast) == AST_STATE_RING) {
|
if (ast_channel_state(ast) == AST_STATE_RING) {
|
||||||
if (channel->session->endpoint->inband_progress) {
|
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;
|
response_code = 183;
|
||||||
res = -1;
|
res = -1;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user