diago icon indicating copy to clipboard operation
diago copied to clipboard

Infinite authentication look on INVITE with invalid credentials

Open arkadiam opened this issue 9 months ago • 2 comments

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.

arkadiam avatar Feb 28 '25 19:02 arkadiam

Sorry it's an issue in emiago/sipgo repo:

https://github.com/emiago/sipgo/blob/70f6a2116b9614b145e52eef19380c34287e485d/dialog_client.go#L215

arkadiam avatar Feb 28 '25 19:02 arkadiam

Fixed on sipgo. This will be fixed on next release.

emiago avatar Sep 28 '25 13:09 emiago