mirror of
https://github.com/PentHertz/OpenBTS.git
synced 2026-05-19 07:53:59 +00:00
- remove qop element from REGISTER because proxies may try to reauth if it is present
- make sure SRES is always 8 characters in length, fixes periodic registration failures when leading zeros are present (upstream r8155)
This commit is contained in:
parent
0ce13ce1b8
commit
e62971ef41
2 changed files with 2 additions and 2 deletions
|
|
@ -493,7 +493,7 @@ SipMessage *SipBase::makeRegisterMsg(DialogType wMethod, const L3LogicalChannel*
|
|||
if (SRES && strlen(SRES)) {
|
||||
if (realm.length() > 0) {
|
||||
string response = makeResponse(authUsername, realm, SRES, registerStr, authUri, RAND);
|
||||
msg->msmAuthorizationValue = format("Digest realm=\"%s\", username=\"%s\", nonce=\"%s\", uri=\"%s\", response=\"%s\", algorithm=MD5, qop=\"auth\" ",
|
||||
msg->msmAuthorizationValue = format("Digest realm=\"%s\", username=\"%s\", nonce=\"%s\", uri=\"%s\", response=\"%s\", algorithm=MD5 ",
|
||||
realm.c_str(), authUsername.c_str(), RAND.c_str(), authUri.c_str(), response.c_str());
|
||||
} else {
|
||||
msg->msmAuthorizationValue = format("Digest, nonce=%s, uri=%s, response=%s",RAND.c_str(),msid.mImsi.c_str(),SRES);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue