Getting 401 unauthorized on Asterisk Login in spite of correct creds in PJSIP.Conf

Rest all being good, the issue was the credentials from chan_sip module (sip.conf) were being picked up.

Do these:

asterisk -rx "module show like chan_sip"
asterisk -rx "module unload chan_sip.so"
# persistently disable:
sudo sed -i 's/^load=chan_sip\.so$/noload=chan_sip.so/' /etc/asterisk/modules.conf || echo 'noload=chan_sip.so' | sudo tee -a /etc/asterisk/modules.conf

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *