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

guillaume.desgeorge at orange.com guillaume.desgeorge at orange.com
Fri Mar 22 08:57:46 UTC 2024


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240322/2467c283/attachment-0001.html>


More information about the Users mailing list