I have Kamailio configured to send a REGISTER to Asterisk whenever someone registers in Kamailio. The REGISTER message has a “from” field with the IP from the Kamailio server and the “contact” field from the registered user.
In Asterisk I created an endpoint and an AOR for every user, but Asterisk rejects the register with saying:
It seems that PJSIP uses the “from” field to match the endpoint instead of the “contact” field as it should be for a REGISTER.
This worked correctly with chan_sip. Is there any way to configure this correctly?