401 for re register from some devices PJSIP

Here is the debug log I collected, the issue is with devices with extensions 15x and 16x series
https://pastebin.com/QZd6JGKh

Here is the first 401

In the next attempt, the device updates the nonce but again asterisk responds with 401

Again in the next attempt, the device tries with this new nonce but asterisk would respond with 401 again