[sr-dev] [kamailio] usrloc fix (#66)

Daniel-Constantin Mierla notifications at github.com
Wed Feb 4 10:51:13 CET 2015


The ignoring was made on purpose, allowing to handle the registrations even the socket is different. Think about the case when kamailio is running on a server changing the IP (eg, on a DSL link), being restarted when the provider changes the address.

In current form, the patch will not be accepted - solutions:

  * save server_id in usrloc and rely on that for loading only own records (it requires adding a new column to location database)
  * make a parameter to enable/disable this behavior

The parameter should be done even with server_id, because I think that two servers are configured to use the same database table when they want to share the location. If you don't want the two (or more) servers to share the location, then you can create many location tables with different name but same structure (and add a record to version table) and each server is using a different one.

As for the pull request, you have to re-sync your repository with the main one, because in pull requests you push now also the patches for geoip2 module, which is already part of the kamailio.

I am going to close this item here.

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/66#issuecomment-72827091
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150204/1e666541/attachment.html>


More information about the sr-dev mailing list