Hello all.
I have a question with regard to sharing the location table between multiple OpenSER servers when using multiple OpenSER servers for load balancing and redundancy. I am using db_mode 1 with usrloc in OpenSER 1.1.0.
When the usrloc module gets/sets information from the location table, does it pull all contact information or just the contact information where the socket field is an IP assigned to the running OpenSER process, ie. a local IP address? It appears that the preload_udomain() function pulls all location information and then makes determinations on whether it is for the current OpenSER process.
I see where the dbrow2info() function in udomain.c makes the determination that the socket is non local but it seems that this is just an error message and the process continues as normal. Should there be a return just after this debug message so that the usrloc module does not continue and manipulate a location entry that does not belong to this particular OpenSER process? Should the information even be pulled from the DB on startup for records which do not have a socket belonging to the current OpenSER process?
Thanks, -Curt