Send registration info on 407 too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
2dd53c0bba
commit
f148fe7e4f
|
@ -4462,7 +4462,14 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
|
|||
ast_log(LOG_NOTICE, "Failed to authenticate on BYE to '%s'\n", get_header(&p->initreq, "From"));
|
||||
p->needdestroy = 1;
|
||||
}
|
||||
}
|
||||
} else if (p->registry && !strcasecmp(msg, "REGISTER")) {
|
||||
if ((p->authtries > 1) || do_register_auth(p, req)) {
|
||||
ast_log(LOG_NOTICE, "Failed to authenticate on REGISTER to '%s'\n", get_header(&p->initreq, "From"));
|
||||
p->needdestroy = 1;
|
||||
}
|
||||
} else
|
||||
p->needdestroy = 1;
|
||||
|
||||
break;
|
||||
case 501: /* Not Implemented */
|
||||
if (!strcasecmp(msg, "INVITE"))
|
||||
|
|
Loading…
Reference in New Issue