How can I send OPTIONS in interval of 30seconds ?
Cordialement,
BERGANZ François
Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine-----
De : Henning Westerholt [mailto:henning.westerholt@1und1.de]
Envoyé : vendredi 27 février 2009 10:31
À : BERGANZ François
Cc : users(a)lists.kamailio.org
Objet : Re: [Kamailio-Users] how to know if my gw servers are active ?
On Friday 27 February 2009, BERGANZ François wrote:
I have 1 SER and 5 ASTERISK.
I dispatch SIP with my own logic to choose the asterisk.
I need in my scrypt to choose among actives asterisk.
Then, how to know which asterisk is active? Is it possible that the SER
OPTIONS each asterisk(s) and put the result is a database ?
There are several possibilities on how to define 'active'. You could send
OPTIONS like you suggested or you could try to setup actual calls over some
test numbers with sipp or sipsak. Then you could insert the state in a DB, or
use some FIFO commands (e.g. with cr) do change the routing. You could
implement this with some small python or bash scripts.
But if you go for the OPTIONS path, then the easiest way would be to just use
the dispatcher module, which already does this checking for you.
Cheers,
Henning