Peer '6001' is trying to register, but not configured as hos

CLI>ERROR[2865]: chan_sip.c:8213 register_verify: Peer ‘6001’ is trying to register, but not configured as host=dynamic
NOTICE[2865]: chan_sip.c:14354 handle_request_register: Registration from ‘sip:6001@192.168.0.1;user=phone’ failed for ‘192.168.0.22’ - No matching peer found.

I have asterisk on 192.168.0.1 and a grandstream bugte tone 100 on 192.168.0.22.

In users.conf I have host =192.168.0.22 registersip=yes.

Why am I getting the above error? As the phone and asterisk are on the same network do I need registersip=yes in users.conf?

Also the phone does not have a dilatone. Can someone help?

Ok we need more info to make sure you are getting the right advise.

What version of Asterisk are you running?

Please post also your SIP.CONF contents (Not all just the stuff that is relevant), as this can show us if there are any configurations that are wrong.

The problem you have can be easily resolved, you could probably solve it by just using host=dynamic instead of using the IP address you have there which is wrong anyway, if you need to use static IP then have host=192.168.0.1 Asterisk is the host, your SIP phones are just stations connecting to Asterisk.

Cheers,

David.