diago
diago copied to clipboard
Infinite authentication look on INVITE with invalid credentials
When making a call through a server that requires authenticating and using invalid username and password there is an infinite look condition in func (s *DialogClientSession) WaitAnswer() function
INVITE-> <-407 Auth required INVITE with Proxy-Authorization -> <-407 Auth required INVITE with Proxy-Authorization -> <-407 Auth required ...
for{} loop should be interrupted with error after two 407 or 401 replies.
Sorry it's an issue in emiago/sipgo repo:
https://github.com/emiago/sipgo/blob/70f6a2116b9614b145e52eef19380c34287e485d/dialog_client.go#L215
Fixed on sipgo. This will be fixed on next release.