Hi!

I think ds_is_active function is the way to go, as Henning mentioned.
Another way, though not so precise, is to use the event_routes from dispatcher module and keep track of the availability of the endpoint.

We are using dispatcher not for load balancing, but to keep track of endpoint status: upon event_route result, the endpoint status is set to a REST Service that is in charge of the routing engine. If the status of the destination endpoint is FALSE (unavailable) it will ignore the endpoint when the routing engine gets the route list to send back to Kamailio (and until the endpoint get back up and routing engine is notified it is OK). 
This is not 100% accurate, as the dispatcher is set to send OPTIONS to each endpoint every X second and between the time interval, the endpoint might change its status and the routing engine is not (yet) notified, but it works great, but we also notify the routing engine if the relay to the endpoint fails, minimizing the delay.

Atenciosamente / Kind Regards / Cordialement / Un saludo,


Sérgio Charrua




On Tue, Jun 10, 2025 at 11:02 AM Henning Westerholt via sr-users <sr-users@lists.kamailio.org> wrote:

Hello,

 

this don’t work for you? https://www.kamailio.org/docs/modules/5.8.x/modules/dispatcher.html#dispatcher.f.ds_is_active

 

Cheers,

 

Henning

 

From: ale Gural via sr-users <sr-users@lists.kamailio.org>
Sent: Montag, 9. Juni 2025 07:39
To: sr-users@lists.kamailio.org
Cc: ale Gural <alegural.kamailio@gmail.com>
Subject: [SR-Users] get ip status from dispatcher

 

Hello, 

There is a way to get the status of specific ip of dispatcher in kamailio.cfg?

not using kamcmd dispatcher.list,

thanks!

 

 

 

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org
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!