Dispatcher vs Keepalive

Sergio Charrua via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <CALZWR5x23b3Kg_o=kCpX4kKOHVoK7Vb_Qm1muZej8r8OQ6MrCQ@mail.gmail.com>
Hello all,

Just wondering your opinions on this....
The project I'm in uses a REST API to get the routes to relay the call to,
and one of the main requirements is whenever an egress gateway is down,
inform the REST API about its status, and the same once the gateway is up
again.
So I was reading the modules docs and was stuck with a question: what would
be the best solution to keep track of egress gateways availability?

1 - using Keepalive with DRouting to ping each endpoint's address:port ,
even though the solution is going to use RTJson with the JSON route list
returned from a REST API which makes DRouting virtually useless, unless for
using the list of gateways to send OPTIONS too. There is no event:routes to
execute every time a gateway is down or up....

2 - using Dispatcher module to "watch" for each endpoint's availability,
and make use of the event:route of the Dispatcher module to inform REST API
that the endpoint is down or back up once again. Again, RTJson with the
JSON route list returned from the REST API would be used to manage routing.

I've done a few tests with Dispatcher, and it was really easy to setup the
endpoint "watching" mode as well as the event:routes, but I might give a
try on Keepalive if it is the better bet.

Would greatly appreciate your opinions and expertise on this.

Atenciosamente / Kind Regards / Cordialement / Un saludo,


*Sérgio Charrua*

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.