Hello,
A few months ago, we moved from Asterisk 1.8 (Debian 8) using chan_sip to Asterisk 16.2.1 (Debian 10) using PJSIP. So far the journey has been quite smooth. There is however a problem when registering with sip providers. We have 3 different providers and two of them constantly present the problem.
Initially the problem was that pjsip show registrations
showed them as Rejected. All it took to fix it was a pjsip reload
. Once a pattern started to emerge, we started to dig deeper and using tcpdump we manage to capture the interaction, yet we fail to understand why it’s happening, so I hope anyone can shed some light on this.
The interaction is as follow:
- => Register
- <= Unauthorized (WWW-Authenticate)
- => Register (Authorization)
- <= Unauthorized (WWW-Authenticate, stale=true)
This interaction repeats until a pjsip reload
is issued. I have the full dumps of the call in case they can be of use.
So my only question is, shouldn’t Asterisk resend the credentials with the new nonce once it gets a stale=true
instead of redoing the whole cycle?. Other than this, I have no idea what could be causing the problem. Any help is appreciated.