[Spce-user] SEMS challenge bug

Alex Lutay alutay at sipwise.com
Sat Oct 21 17:43:39 EDT 2017


Hi,

The issue has been confirmed and reported internally as TT#23800.

Thank you for the bug report here!

On 10/20/2017 06:40 PM, Serge S. Yuriev wrote:
> 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;
>   }

-- 
Alex Lutay



More information about the Spce-user mailing list