On Sep 19, 2024, at 11:37 AM, Knserbrave via sr-users <sr-users(a)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