| | |
| | | // 校验密码是否正确
|
| | | if (authorhead != null) {
|
| | | passwordCorrect = new DigestServerAuthenticationHelper().doAuthenticatePlainTextPassword(request,
|
| | | sipConfig.getSipPassword());
|
| | | sipConfig.getPassword());
|
| | | }
|
| | | if (StringUtils.isEmpty(sipConfig.getSipPassword())){
|
| | | if (StringUtils.isEmpty(sipConfig.getPassword())){
|
| | | passwordCorrect = true;
|
| | | }
|
| | |
|
| | |
| | | logger.info("[{}] 密码错误 回复401", requestAddress);
|
| | | }
|
| | | response = getMessageFactory().createResponse(Response.UNAUTHORIZED, request);
|
| | | new DigestServerAuthenticationHelper().generateChallenge(getHeaderFactory(), response, sipConfig.getSipDomain());
|
| | | new DigestServerAuthenticationHelper().generateChallenge(getHeaderFactory(), response, sipConfig.getDomain());
|
| | | }else {
|
| | | if (!passwordCorrect){
|
| | | // 注册失败
|