Greetings,
I'm using loose_route() from the RR module and i'm having troubles making it use the following exception from the code : "There is only one exception: If the request is out-of-dialog (no to-tag) and there is only one Route: header indicating the local proxy, then the Route: header is removed and the function returns FALSE."
My example is a REGISTER without To-TAG which has a Route header with kamailio address. If i use proxy IP on Route header , loose_route() returns false as it should. However, if i use an hostname belonging to the proxy in the route, loose_route() returns true.
I have hostnames and local ips defined in the "DOMAIN" table but it doesn't seem to be working. Which other places can local hostnames and ips be configured in order to be seen as local to loose_route() ?
Best Regards
In domain's modparam, do you have "register_myself" enabled?
What if you define local domains via "alias=my_domain", does it make a difference?
Regards,
On Mon, Jan 4, 2021 at 9:47 AM Duarte Rocha duarterocha91@gmail.com wrote:
Greetings,
I'm using loose_route() from the RR module and i'm having troubles making it use the following exception from the code : "There is only one exception: If the request is out-of-dialog (no to-tag) and there is only one Route: header indicating the local proxy, then the Route: header is removed and the function returns FALSE."
My example is a REGISTER without To-TAG which has a Route header with kamailio address. If i use proxy IP on Route header , loose_route() returns false as it should. However, if i use an hostname belonging to the proxy in the route, loose_route() returns true.
I have hostnames and local ips defined in the "DOMAIN" table but it doesn't seem to be working. Which other places can local hostnames and ips be configured in order to be seen as local to loose_route() ?
Best Regards _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
It may also help to get the debug messages printed for such case when having debug=3 in kamailio.cfg file.
Cheers, Daniel
On 04.01.21 16:13, Sergiu Pojoga wrote:
In domain's modparam, do you have "register_myself" enabled?
What if you define local domains via "alias=my_domain", does it make a difference?
Regards,
On Mon, Jan 4, 2021 at 9:47 AM Duarte Rocha <duarterocha91@gmail.com mailto:duarterocha91@gmail.com> wrote:
Greetings, I'm using loose_route() from the RR module and i'm having troubles making it use the following exception from the code : "There is only one exception: If the request is out-of-dialog (no to-tag) and there is only one Route: header indicating the local proxy, then the Route: header is removed and the function returns FALSE." My example is a REGISTER without To-TAG which has a Route header with kamailio address. If i use proxy IP on Route header , loose_route() returns false as it should. However, if i use an hostname belonging to the proxy in the route, loose_route() returns true. I have hostnames and local ips defined in the "DOMAIN" table but it doesn't seem to be working. Which other places can local hostnames and ips be configured in order to be seen as local to loose_route() ? Best Regards _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi,
Thank you for your answers.
The domain parameter "register_myself" solved this issue immediately.
Cheers
Duarte Rocha duarterocha91@gmail.com escreveu no dia segunda, 4/01/2021 à(s) 14:46:
Greetings,
I'm using loose_route() from the RR module and i'm having troubles making it use the following exception from the code : "There is only one exception: If the request is out-of-dialog (no to-tag) and there is only one Route: header indicating the local proxy, then the Route: header is removed and the function returns FALSE."
My example is a REGISTER without To-TAG which has a Route header with kamailio address. If i use proxy IP on Route header , loose_route() returns false as it should. However, if i use an hostname belonging to the proxy in the route, loose_route() returns true.
I have hostnames and local ips defined in the "DOMAIN" table but it doesn't seem to be working. Which other places can local hostnames and ips be configured in order to be seen as local to loose_route() ?
Best Regards
That parameter shouldn't really exist. It should be enabled by default in the code. This issue came a few times on the mailing list.
Regards, Ovidiu
On Thu, Jan 7, 2021 at 11:15 AM Duarte Rocha duarterocha91@gmail.com wrote:
Hi,
Thank you for your answers.
The domain parameter "register_myself" solved this issue immediately.
Cheers
Duarte Rocha duarterocha91@gmail.com escreveu no dia segunda, 4/01/2021 à(s) 14:46:
Greetings,
I'm using loose_route() from the RR module and i'm having troubles making it use the following exception from the code : "There is only one exception: If the request is out-of-dialog (no to-tag) and there is only one Route: header indicating the local proxy, then the Route: header is removed and the function returns FALSE."
My example is a REGISTER without To-TAG which has a Route header with kamailio address. If i use proxy IP on Route header , loose_route() returns false as it should. However, if i use an hostname belonging to the proxy in the route, loose_route() returns true.
I have hostnames and local ips defined in the "DOMAIN" table but it doesn't seem to be working. Which other places can local hostnames and ips be configured in order to be seen as local to loose_route() ?
Best Regards
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users