parent
2af5cf496c
commit
641d7d8e42
|
@ -51,12 +51,11 @@ public class ProxyServletConfig {
|
|||
@Override
|
||||
protected String rewriteQueryStringFromRequest(HttpServletRequest servletRequest, String queryString) {
|
||||
String queryStr = super.rewriteQueryStringFromRequest(servletRequest, queryString);
|
||||
if (queryStr != null) {
|
||||
queryStr += "&";
|
||||
if (!StringUtils.isEmpty(queryStr)) {
|
||||
queryStr += "&secret=" + mediaConfig.getSecret();
|
||||
}else {
|
||||
queryStr = "?";
|
||||
queryStr = "secret=" + mediaConfig.getSecret();
|
||||
}
|
||||
queryStr += "secret=" + mediaConfig.getSecret();
|
||||
return queryStr;
|
||||
}
|
||||
|
||||
|
|
|
@ -77,6 +77,9 @@ public class RegisterRequestProcessor extends SIPRequestAbstractProcessor {
|
|||
passwordCorrect = new DigestServerAuthenticationHelper().doAuthenticatePlainTextPassword(request,
|
||||
sipConfig.getSipPassword());
|
||||
}
|
||||
if (StringUtils.isEmpty(sipConfig.getSipPassword())){
|
||||
passwordCorrect = true;
|
||||
}
|
||||
|
||||
// 未携带授权头或者密码错误 回复401
|
||||
if (authorhead == null || !passwordCorrect) {
|
||||
|
|
Loading…
Reference in New Issue