FreePBX / Asterisk Failed to authenticate device

Overview

After updating FreePBX from 2.9.0.11 to 2.9.0.12 the inbound calls were not routing to my ringgroup / extensions. The calls were coming from Sipura 3102 and no settings were changed other than upgrading the framework.

Investigation

I Tailed the log in /var/log/asterisk/full I found the following errors when an incoming call was placed:
WARNING[2402] chan_sip.c: username mismatch, have , digest has <>
NOTICE[2402] chan_sip.c: Failed to authenticate device ;tag=a907d4e9972ccb0do1

This meant the Sipura was forwarding the calls correctly and FreePBX was receiving the calls too. The biggest clue was pstn between the brackets because the name matched the inbound route I had setup for the landline.

The second notice line was just information about the call itself so 123456 was the caller ID, the IP address (192.168.0.1) was the FreePBX server address. Not sure what tag was but that changed every so often.

Solution

Log in to the Cisco Linksys SPA management webpage as admin and go to the advanced view. Go to Voice > PSTN Line tab and change User ID under Subscriber Information to the name of the inbound route on FreePBX. In my example above this would be “pstn”. This must match exactly the name of the inbound route name.

If the above is incorrect then the digest value will be populated with the SPA name. For example if the User ID was changed to Danny then the the new error message would be something like this:
WARNING[2402] chan_sip.c: username mismatch, have , digest has

Summary

Not sure why it had stopped working and looking back at my previous post on how to setup the Sipura and FreePBX it doesn’t look like I set the User ID for the PSTN line. Maybe a change from the old to the new version of FreePBX

About Danny

I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [http://code.google.com/p/energyathome/] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in PBX and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

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

All comments must go through an approval and anti-spam process before appearing on the website. Please be patience and do not re-submit your comment if it does not appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.