diff options
author | Joshua Colp <jcolp@digium.com> | 2015-04-29 13:09:20 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-04-29 13:09:20 -0500 |
commit | 648b22f19d5223a87ae03a16286b2d94bd29b3fb (patch) | |
tree | 36c78fb234f05b30381740a5c38ecb62ae26a0b7 /res/res_pjsip_outbound_publish.c | |
parent | 03261b9614996a55874233e021e6e83482be11b1 (diff) | |
parent | 4f1db2070da56f0357c10fad729dd5e90644a042 (diff) |
Merge "res_pjsip_outbound_registration: Don't fail on delayed processing."
Diffstat (limited to 'res/res_pjsip_outbound_publish.c')
-rw-r--r-- | res/res_pjsip_outbound_publish.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_pjsip_outbound_publish.c b/res/res_pjsip_outbound_publish.c index 8b6f6e41e..f7669932e 100644 --- a/res/res_pjsip_outbound_publish.c +++ b/res/res_pjsip_outbound_publish.c @@ -867,8 +867,10 @@ static void sip_outbound_publish_callback(struct pjsip_publishc_cbparam *param) } if (param->code == 401 || param->code == 407) { + pjsip_transaction *tsx = pjsip_rdata_get_tsx(param->rdata); + if (!ast_sip_create_request_with_auth(&publish->outbound_auths, - param->rdata, pjsip_rdata_get_tsx(param->rdata), &tdata)) { + param->rdata, tsx->last_tx, &tdata)) { pjsip_publishc_send(client->client, tdata); } client->auth_attempts++; |