res_pjsip_session: Fix cherry pick to master compile error.
ASTERISK-25131 Reported by: Richard Mudgett Change-Id: I87c9c96ae4a8fe2bc8a0ddea6958a2ad9cefd8e3
This commit is contained in:
parent
0b3c9c6289
commit
00a47ffc7e
1 changed files with 4 additions and 4 deletions
|
@ -1467,8 +1467,8 @@ static pj_bool_t outbound_invite_auth(pjsip_rx_data *rdata)
|
||||||
|
|
||||||
session = inv->mod_data[session_module.id];
|
session = inv->mod_data[session_module.id];
|
||||||
|
|
||||||
if (ast_sip_create_request_with_auth(&session->endpoint->outbound_auths, rdata, tsx,
|
if (ast_sip_create_request_with_auth(&session->endpoint->outbound_auths, rdata,
|
||||||
&tdata)) {
|
tsx->last_tx, &tdata)) {
|
||||||
return PJ_FALSE;
|
return PJ_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2370,7 +2370,7 @@ static void session_inv_on_tsx_state_changed(pjsip_inv_session *inv, pjsip_trans
|
||||||
if ((tsx->status_code == 401 || tsx->status_code == 407)
|
if ((tsx->status_code == 401 || tsx->status_code == 407)
|
||||||
&& !ast_sip_create_request_with_auth(
|
&& !ast_sip_create_request_with_auth(
|
||||||
&session->endpoint->outbound_auths,
|
&session->endpoint->outbound_auths,
|
||||||
e->body.tsx_state.src.rdata, tsx, &tdata)) {
|
e->body.tsx_state.src.rdata, tsx->last_tx, &tdata)) {
|
||||||
/* Send authed reINVITE */
|
/* Send authed reINVITE */
|
||||||
ast_sip_session_send_request_with_cb(session, tdata, cb);
|
ast_sip_session_send_request_with_cb(session, tdata, cb);
|
||||||
return;
|
return;
|
||||||
|
@ -2407,7 +2407,7 @@ static void session_inv_on_tsx_state_changed(pjsip_inv_session *inv, pjsip_trans
|
||||||
if ((tsx->status_code == 401 || tsx->status_code == 407)
|
if ((tsx->status_code == 401 || tsx->status_code == 407)
|
||||||
&& !ast_sip_create_request_with_auth(
|
&& !ast_sip_create_request_with_auth(
|
||||||
&session->endpoint->outbound_auths,
|
&session->endpoint->outbound_auths,
|
||||||
e->body.tsx_state.src.rdata, tsx, &tdata)) {
|
e->body.tsx_state.src.rdata, tsx->last_tx, &tdata)) {
|
||||||
/* Send authed version of the method */
|
/* Send authed version of the method */
|
||||||
ast_sip_session_send_request_with_cb(session, tdata, cb);
|
ast_sip_session_send_request_with_cb(session, tdata, cb);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue