The error you got should not be stoping the phones from working (it’s something that phone is sending to asterisk that asterisk is not set t handle). Are you using NAT ?
Do you have your routers set up for it. You need to forward ports 5060 and 10,000 - 20,0000 UDP to your server as well as you have to set up nat on asterisk in sip.conf