mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res_pjsip: Ignore 401/407 responses for transactions and dialogs we don't know about.
Under normal conditions it is unlikely we will ever receive a response for a transaction or dialog we don't know about but if any are received ignore them. ........ Merged revisions 404371 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -54,9 +54,11 @@ static pj_bool_t outbound_auth(pjsip_rx_data *rdata)
|
||||
|
||||
tsx = pjsip_rdata_get_tsx(rdata);
|
||||
dlg = pjsip_rdata_get_dlg(rdata);
|
||||
ast_assert(dlg != NULL && tsx != NULL);
|
||||
endpoint = ast_sip_dialog_get_endpoint(dlg);
|
||||
if (!dlg || !tsx) {
|
||||
return PJ_FALSE;
|
||||
}
|
||||
|
||||
endpoint = ast_sip_dialog_get_endpoint(dlg);
|
||||
if (!endpoint) {
|
||||
return PJ_FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user