[You don't often get email from sr-users@lists.kamailio.org. Learn why this is important at
https://aka.ms/LearnAboutSenderIdentification ]
[EXTERNAL]
On Sep 19, 2024, at 11:37 AM, Knserbrave via sr-users <sr-users@lists.kamailio.org> wrote:
>
> Hi Kamailio community.
>
> There are a few fields in the usrloc cache I am interested in accessing at runtime to influence routing decisions. I can use SQLops to achieve the same functionality, however I'm interested in minimizing DB operations. I would like to know if there is a
generally accepted approach to retrieving this information from the memory-hosted usrloc cache rather than dipping into the database.
A few ways you could do this…
One way would be to run a ul.lookup and read the user-agent:
kamcmd ul.lookup location [AOR]
Regards,
Fred Posner
Contact via
https://fredoso.com
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe: