Using 13.13.1, we are running into trouble with our SIP Provider a few times per month.
He receives invalid registrations and treats them as an attack, so we get blacklisted und our trunks are offline.
From our provider’s view of point, the problem looks like
asterisk provider
──────────┬───────── ──────────┬─────────
+285.197547 │ REGISTER │ with old nonce
14:04:59.899813 │ ──────────────────────────> │
+0.000385 │ 401 Unauthorized │ with new nonce
14:04:59.900198 │ <────────────────────────── │
+0.198951 │ REGISTER │ with new nonce
14:05:00.099149 │ ──────────────────────────> │
+0.000147 │ REGISTER │ with old nonce = unexpected!
14:05:00.099296 │ ──────────────────────────> │
+0.000350 │ 401 Unauthorized │
14:05:00.099646 │ <────────────────────────── │
I verified that asterisk had sent the messages in same sequence as the provider received them.
Note the very short time difference between steps 3 and 4. Maybe some kind of race condition between 2 threads?