I am trying to connect my Cisco CP-8961 with FW sip8961.9-4-2SR4-1 to Asterisk which is running on a Raspberry.
But i get tis Error
[ 1caa0710-a5e10006-2354ed4f-41cc5b4e(at)192.168.1.11) - Failed to authenticate
[2021-01-19 20:48:02] NOTICE[1178]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request ‘REGISTER’ from ‘<sip:82(at) 192.168.1.2>’ failed for ‘192.168.1.11:5060’ (callid: 1caa0710-a5e10006-2354ed4f-41cc5b4e(at) 192.168.1.11) - Failed to authenticate]
Confirm that in FreePBX you have created extension 82 as a pjsip (not chan_sip) extension.
Some devices are incompatible with the long autogenerated Secret. Choose a simple password consisting of no more than 12 letters and digits and paste that into both Secret for the extension and authPassword for the phone.
Many Cisco phones require that both Rewrite Contact and Force rport be set to No for the extension.
If you still have trouble, at the Asterisk command prompt, type pjsip set logger on
reboot the phone, paste the Asterisk log for the registration attempt (including SIP trace) at pastebin.freepbx.org and post the link here.
Also, your XML file got butchered by the forum. Paste it at pastebin.freepbx.org and post that link as well.
I have heard reports, on and off, that using TCP instead of UDP can also help with some connection problems. If you run into any new connectivity problems, I’d suggest adding that to your mix.
Do not (since the system is working) do this unless you just want to mess with to see what it does.