Greetings all. I'm experienced with devops but new to the telephony / SIP world. I am trying to connect an 8841 phone to a vanilla FreePBX install running on a Raspberry Pi.
Configuration
- Phone is a CUCM 8841 (CP-8841-W)
- Phone firmware is sip88xx.10-3-1-20
- Asterisk 16.6.1, FreePBX 15.0.16.22
- pjsip with UDP and TCP transports enabled on port 5060, TLS on 5061
- All devices are on a local subnet
Issue description
I set the TFTP server address manually on the 8841, then spun up a TFTP server on the Pi to serve a sepmac.cnf.xml file (attached below) gleaned from the various ones floating around this forum. Most of the ones I tried did not work and resulted in an error entry in the phones status log, but I got one to work — and by "work" I mean that the phone acknowledges it without error.
I installed the Asterisk/FreePBX distro, and enabled TCP and UDP pjsip, both on port 5060. I created two SIP extensions and confirmed I was able to connect to them with Zoiper / Linphone and make calls back and forth.
However, I have not been able to get the phone to register. On the phone's status screen, it just keeps repeating:
[timestamp]
Error updating locale
[timestamp]
Error updating locale
[timestamp]
VPN not configured
[timestamp]
SEPxxxxxxxxxxx.cnf.xml(TFTP)
...over and over.
Meanwhile, the Asterisk logs show the following:
[2020-09-12 23:16:41] ERROR[1185]: pjproject: <?>: sip_transport. Error processing 1262 bytes packet from UDP 192.168.19.187:5060 : PJSIP syntax error exception when parsing 'Request Line' header on line 1 col 1:
R?h?V????????8.19.189 SIP/2.0
Via: SIP/2.0/UDP 192.168.19.187:5060;branch=z9hG4bK0691a84a
From: "" <sip:@192.168.19.187>;tag=ac7e8a2bfaf900d4617722f7-46c21df8
To: <sip:192.168.19.189>
Call-ID: ac7e8a2b-faf900d4-0d22d180-744c4a6f@192.168.19.187
Date: Sat, 12 Sep 2020 20:43:42 GMT
CSeq: 1000 REFER
User-Agent: Cisco-CP8841/10.3.1
Expires: 10
Max-Forwards: 70
Contact: <sip:@192.168.19.187:5060;transport=udp>
Require: norefersub
Referred-By: "" <sip:@192.168.19.187>
Refer-To: cid:3cad1cf0@192.168.19.187
Content-Id: <3cad1cf0@192.168.19.187>
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,REGISTER,UPDATE,SUBSCRIBE
Content-Length: 509
Content-Type: application/x-cisco-alarm+xml
Content-Disposition: session;handling=required
<?xml version="1.0" encoding="UTF-8"?>
<x-cisco-alarm>
<Alarm Name="DeviceTLInfo">
<ParameterList>
<String name="DeviceName">SEPAC7E8A2BFAF9</String>
<String name="IPv4Address">192.168.19.187</String>
<String name="IPv6Address"></String>
<String name="CTL_Signature">Not Installed</String>
<String name="CTL_TFTP_Server">N/A</String>
<String name="ITL_Signature">Not Installed</String>
<String name="ITL_TFTP_Server">N/A</String>
<String name="StatusCode">6</String>
</ParameterList>
</Alarm>
</x-cisco-alarm>
-- end of packet.
...over and over.
At this point I am completely out of ideas, having tried various things that I found in this forum (changing <transportLayerProtocol>, etc.) without success. Any pointers or suggestions would be very much appreciated.
Thanks!