Hi everyone,
I am trying to forward registration from one kamailio instance to another one eg.
UA1 <---> kamailioB <------> kamailioA
I am trying to register on `kamailioA` with UA1. I have UA1 registered on kamailioA. I am routing SIP messages by adding this to `request_route` block:
if (uri != myself)
{
forward(otherKamailioIP, 5060);
}
Where I am using as `otherKamilioIP on kamailioA the kamailioB IP address and vice versa.
I can clearly see in Wireshark, that the SIP messages are routed correctly but I am getting 401 Unauthorized which is sent from kamailioA to kamailioB and then from kamailioB to UA1.
I don't know what to do next. Does anyone encounter this kind of error before?
Thanks in advance