noxxi / p5-net-sip

Net::SIP Perl Module
Other
15 stars 22 forks source link

Echo back algorithm attribute if set in WWW-Authenticate Response Header #22

Closed mfalkus closed 5 years ago

mfalkus commented 5 years ago

We see some PBXs fail to validate an auth response unless the algorithm attribute provided in the 401 response is also set in the next REGISTER request as well. The attribute is optional and should default to MD5 if not set, however this change would better mimic the far end behavior by explicitly setting the algorithm in the same format to the input attributes from the 401 response.

noxxi commented 5 years ago

Looks good. Thanks for the patch.