[SR-Users] Get all contacts by domain

Fred Posner fred at palner.com
Fri Jun 10 14:10:08 CEST 2022


> On Jun 10, 2022, at 4:39 AM, Jose Fco. Irles Durá <josefu at gmail.com> wrote:
> 
> Hi,
> 
> I'm running a cloud infrastructure with multiple sip domains and I have some kamailio's as registrars with dmq for usrloc replication.
> The kamailio registrars are configured without db, so the aors are in ram.
> 
> For some gui's I need to get all aors for one sip domain, If I execute ul.dump I get all aors, but I want only a few. In my situation it would be perfect to get all registrations for one sip domain in one request (memory, performance, cache at gui...)
> 
> I thought I could save the registers with save("$rd") but ul.dump doesn't allow any parameter that restricts the "location" domain.
> 
> Is there any solution for this?
> 
> Best regards

In my mind, the filtering would require CPU. I’d rather something external parse the data (like a script or simple go program) to filter the data needed than Kamailio (leaving Kamailio CPU to RTC handling).

Generally, I pull the dump and then parse it outside of kamailio.


Fred Posner
fred at palner.com







More information about the sr-users mailing list