The use of `useinfo` field is when you want to store `advertised` address set to `listen`
parameter. It is not about using it for the value of the new parameter `sock_addr`.
As I mentioned above, setting the `sock_addr` value via modparm is ok only using kamailio
with a single listen address. I find its purpose really limited from that perspective.
The socket field in database location table is important to match a local listen socket
(by listen address or advertised address) when phones connect from behind nat.
So, what I meant to store the value from useinfo requires to update other parts of usrloc
(or registrar) module to use it when is set (that happens when advertise is in listen
value) and if not, store the filed done right now.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2498#issuecomment-704245604