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
Sreekumar Kj
Sreekumar (KJ) has been a hobby programmer from school days. Codemarvels is his personal blog from the year 2010, where he writes about technology, philosophy, society and a bit about physics. He now runs a conversational AI company - DheeYantra - focusing his efforts to help businesses improve operational efficiency using digital employees powered by AI.

Leave a Comment

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