[OpenSIPS-Users] How to access to a column of a location database

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Mar 28 10:15:20 UTC 2024


Hi Guillaume,

The registered contact (and the additional info) is fetched via the 
lookup("location") function. It also sets the registered socket for the 
routing the current request.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 22.03.2024 10:57, guillaume.desgeorge at orange.com wrote:
>
> Hi everybody,
>
> In my routing logic of my “opensips.cfg” file, I’m trying to access 
> the “socket” field of the location table of registered contacts.
>
> I have the registering informations correctly written in MySQL 
> location table but can’t find a function to access it.
>
> I’d like to have a function which I give the registered username and 
> can give me back the associated socket.
>
> Is the lookup () function the good one ? I didn’t understand how to 
> use it that way.
>
> Thanks for your help,
>
>    Guillaume
>
> Orange Restricted
>
>
> Orange Restricted
>
> ____________________________________________________________________________________________________________
> Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
> pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
> a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
> Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
>
> This message and its attachments may contain confidential or privileged information that may be protected by law;
> they should not be distributed, used or copied without authorisation.
> If you have received this email in error, please notify the sender and delete this message and its attachments.
> As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
> Thank you.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240328/c3dd4abe/attachment.html>


More information about the Users mailing list