[OpenSIPS-Users] Location table - how to use socket

John Quick john.quick at smartvox.co.uk
Thu May 25 11:16:33 EDT 2017


The socket field in the location table sometimes contains very useful
information such as:
- to see which server received the Registration in a dual site scenario
- to see if the UA registered over UDP, TCP or TLS

However, there does not seem to be any mechanism for using the socket
information in the USRLOC or REGISTRAR modules.
For example, it is not possible to call lookup and filter for contacts made
on the local server's socket or for contacts that used TLS.

Please could the developers look at options to leverage this useful data,
especially for the lookup function.

Are there any tricks I could employ to achieve the same result. For example,
if I set a branch flag to indicate which site received this registration
would it then be possible to filter the results returned by lookup and
extract the registrations received at site A while discarding those received
at site B?

To give a practical example: Dual site; Shared location table; User's device
is registered at site B; Call arrives at site A so I want to use 302
redirect to send it over to site B, but I cannot tell from the results of a
lookup whether the registration was made at A or B even though the data is
there in the socket field.

John Quick
Smartvox Limited





More information about the Users mailing list