[Spce-user] SEMS challenge bug

Serge S. Yuriev me at nevian.org
Fri Oct 20 12:40:18 EDT 2017


Hello,

In debug logs I see

Oct 20 19:25:41 msk-vo-s-sbc1 ngcp-sems[55649]: [#7f83df25c700] 
[onSipReply, UACAuth.cpp:171] DEBUG:   UACAuth - processing with reply 
code 401
Oct 20 19:25:41 msk-vo-s-sbc1 ngcp-sems[55649]: [#7f83df25c700] 
[do_auth, UACAuth.cpp:400] DEBUG:  unsupported algorithm: 'md5'
Oct 20 19:25:41 msk-vo-s-sbc1 ngcp-sems[55649]: [#7f83df25c700] 
[onSipReply, AmSipRegistration.cpp:353] DEBUG:  Registration failed.

Looks like this string causes error
if ((challenge.algorithm.length()) && (challenge.algorithm != "MD5")) {
     DBG("unsupported algorithm: '%s'\n", challenge.algorithm.c_str());
     return false;
   }

While in upstream we have
if ((challenge.algorithm.length()) && !(challenge.algorithm == "MD5" || 
challenge.algorithm == "md5" )) {
     DBG("unsupported algorithm: '%s'\n", challenge.algorithm.c_str());
     return false;
   }

-- 
Serge S. Yuriev
Lead VoIP engineer




More information about the Spce-user mailing list