hello,
I have a list of servers in my database. I need that openser send OPTIONS to servers. for example, I could have a col 'active' to know if each server is active or not.
In fact, I need to do an other style of dispatch, and, I cant use the dispatcher module!
is there a solution for that ?
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
On Friday 27 February 2009, BERGANZ François wrote:
I have a list of servers in my database. I need that openser send OPTIONS to servers. for example, I could have a col 'active' to know if each server is active or not.
In fact, I need to do an other style of dispatch, and, I cant use the dispatcher module!
is there a solution for that ?
Hi François,
there are several other LB-style modules. For example lcr, or carrierroute. The cr module don't do active probing of GWs, for this you need to use some external scripts, or manual intervention. But withough more informations about the functionality you actually need to achive its hard to make recommendations..
Cheers,
Henning
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 ?
Thank you
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:07 À : users@lists.kamailio.org Cc : BERGANZ François Objet : Re: [Kamailio-Users] how to know if my gw servers are active ?
On Friday 27 February 2009, BERGANZ François wrote:
I have a list of servers in my database. I need that openser send OPTIONS to servers. for example, I could have a col 'active' to know if each server is active or not.
In fact, I need to do an other style of dispatch, and, I cant use the dispatcher module!
is there a solution for that ?
Hi François,
there are several other LB-style modules. For example lcr, or carrierroute. The cr module don't do active probing of GWs, for this you need to use some external scripts, or manual intervention. But withough more informations about the functionality you actually need to achive its hard to make recommendations..
Cheers,
Henning
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
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@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
On Friday 27 February 2009, BERGANZ François wrote:
How can I send OPTIONS in interval of 30seconds ?
read the docs :-) http://www.kamailio.org/docs/modules/devel/dispatcher.html#id2467918
Cheers,
Henning
If I cant use dispatcher module? Because, I don’t use the module algo to choose the dst.
Cordialement, BERGANZ François
http://www.acropolistelecom.net 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:38 À : BERGANZ François Cc : users@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:
How can I send OPTIONS in interval of 30seconds ?
read the docs :-) http://www.kamailio.org/docs/modules/devel/dispatcher.html#id2467918
Cheers,
Henning
On Friday 27 February 2009, BERGANZ François wrote:
If I cant use dispatcher module? Because, I don’t use the module algo to choose the dst.
Well, then perhaps you need to use another solution, or adapt the dispatcher code to your needs. May i ask what is the problem with existing algorithms? What exactly do you want to achive?
Cheers,
Henning
I need to dispatch to the asterisk which have less users connected
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 11:07 À : BERGANZ François Cc : users@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:
If I cant use dispatcher module? Because, I don’t use the module algo to choose the dst.
Well, then perhaps you need to use another solution, or adapt the dispatcher code to your needs. May i ask what is the problem with existing algorithms? What exactly do you want to achive?
Cheers,
Henning
On 02/27/2009 12:10 PM, BERGANZ François wrote:
I need to dispatch to the asterisk which have less users connected
How do you get the asterisk with the less users connected? You have some data in a db table?
Cheers, Daniel
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 11:07 À : BERGANZ François Cc : users@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:
If I cant use dispatcher module? Because, I don’t use the module algo to choose the dst.
Well, then perhaps you need to use another solution, or adapt the dispatcher code to your needs. May i ask what is the problem with existing algorithms? What exactly do you want to achive?
Cheers,
Henning
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Yes, my asterisk update a database to help the SER
Cordialement, BERGANZ François Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : vendredi 27 février 2009 11:19 À : BERGANZ François Cc : 'Henning Westerholt'; users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to know if my gw servers are active ?
On 02/27/2009 12:10 PM, BERGANZ François wrote:
I need to dispatch to the asterisk which have less users connected
How do you get the asterisk with the less users connected? You have some data in a db table?
Cheers, Daniel
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 11:07 À : BERGANZ François Cc : users@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:
If I cant use dispatcher module? Because, I don’t use the module algo to choose the dst.
Well, then perhaps you need to use another solution, or adapt the dispatcher code to your needs. May i ask what is the problem with existing algorithms? What exactly do you want to achive?
Cheers,
Henning
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 02/27/2009 12:23 PM, BERGANZ François wrote:
Yes, my asterisk update a database to help the SER
then you can make asterisk to update periodically a table with a date, and if one asterisk box did the update older than 60sec (or what so ever), then do not use it.
Cheers, Daniel
Cordialement, BERGANZ François Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : vendredi 27 février 2009 11:19 À : BERGANZ François Cc : 'Henning Westerholt'; users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to know if my gw servers are active ?
On 02/27/2009 12:10 PM, BERGANZ François wrote:
I need to dispatch to the asterisk which have less users connected
How do you get the asterisk with the less users connected? You have some data in a db table?
Cheers, Daniel
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 11:07 À : BERGANZ François Cc : users@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:
If I cant use dispatcher module? Because, I don’t use the module algo to choose the dst.
Well, then perhaps you need to use another solution, or adapt the dispatcher code to your needs. May i ask what is the problem with existing algorithms? What exactly do you want to achive?
Cheers,
Henning
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
If I do :
modparam("dispatcher", "ds_ping_method", "OPTIONS") modparam("dispatcher", "ds_ping_interval", 5) modparam("dispatcher", "ds_probing_mode", 1)
where SER save the response ?
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : vendredi 27 février 2009 11:45 À : BERGANZ François Cc : 'Henning Westerholt'; users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to know if my gw servers are active ?
On 02/27/2009 12:23 PM, BERGANZ François wrote:
Yes, my asterisk update a database to help the SER
then you can make asterisk to update periodically a table with a date, and if one asterisk box did the update older than 60sec (or what so ever), then do not use it.
Cheers, Daniel
Cordialement, BERGANZ François Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : vendredi 27 février 2009 11:19 À : BERGANZ François Cc : 'Henning Westerholt'; users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to know if my gw servers are active ?
On 02/27/2009 12:10 PM, BERGANZ François wrote:
I need to dispatch to the asterisk which have less users connected
How do you get the asterisk with the less users connected? You have some data in a db table?
Cheers, Daniel
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 11:07 À : BERGANZ François Cc : users@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:
If I cant use dispatcher module? Because, I don’t use the module algo to choose the dst.
Well, then perhaps you need to use another solution, or adapt the dispatcher code to your needs. May i ask what is the problem with existing algorithms? What exactly do you want to achive?
Cheers,
Henning
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Hello, How did you setup your Asterisk to update SER/OpenSER/Kamalito's database ? I am trying to setup a solution for 2 Asterisk or more servers to allow dynamic and not static user registration. i.e. any user can register with any of the Asterisk servers. Let's say if UserA register with Asterisk1, this will reflect on SER's database where to route the call. In this scenario of UserA now register with Asterisk4 5 minutes later, SER's database will be automatically updated and calls to UserA will be automatically routed to Asterisk4. What I am hoping to achieve is not to do this via manual intervention. Any this will be much appreciated. Cheers, Abdul Hakeem
-----Original Message----- From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of BERGANZ François Sent: 27 February 2009 10:24 To: 'Daniel-Constantin Mierla' Cc: users@lists.kamailio.org Subject: Re: [Kamailio-Users] how to know if my gw servers are active ?
Yes, my asterisk update a database to help the SER
Cordialement, BERGANZ François P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : vendredi 27 février 2009 11:19 À : BERGANZ François Cc : 'Henning Westerholt'; users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to know if my gw servers are active ?
On 02/27/2009 12:10 PM, BERGANZ François wrote:
I need to dispatch to the asterisk which have less users connected
How do you get the asterisk with the less users connected? You have some data in a db table?
Cheers, Daniel
Cordialement, BERGANZ François P 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 11:07 À : BERGANZ François Cc : users@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:
If I cant use dispatcher module? Because, I dont use the module algo to choose the dst.
Well, then perhaps you need to use another solution, or adapt the
dispatcher
code to your needs. May i ask what is the problem with existing
algorithms?
What exactly do you want to achive?
Cheers,
Henning
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Abdul Hakeem,
I use Asterisk-SER for another way. SER authenticate users and asterisk(s) accept all SIP frames from the SER. Then, asterisk(s) forward the call to the provider.
When a call come from the provider, asterisk forward it to the SER and the SER just do a lookup(location)!
Cordialement, BERGANZ François Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Abdul Hakeem [mailto:alhakeem@gmail.com] Envoyé : samedi 28 février 2009 09:41 À : 'BERGANZ François' Cc : users@lists.kamailio.org Objet : RE: [Kamailio-Users] how to know if my gw servers are active ?
Hello, How did you setup your Asterisk to update SER/OpenSER/Kamalito's database ? I am trying to setup a solution for 2 Asterisk or more servers to allow dynamic and not static user registration. i.e. any user can register with any of the Asterisk servers. Let's say if UserA register with Asterisk1, this will reflect on SER's database where to route the call. In this scenario of UserA now register with Asterisk4 5 minutes later, SER's database will be automatically updated and calls to UserA will be automatically routed to Asterisk4. What I am hoping to achieve is not to do this via manual intervention. Any this will be much appreciated. Cheers, Abdul Hakeem
-----Original Message----- From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of BERGANZ François Sent: 27 February 2009 10:24 To: 'Daniel-Constantin Mierla' Cc: users@lists.kamailio.org Subject: Re: [Kamailio-Users] how to know if my gw servers are active ?
Yes, my asterisk update a database to help the SER
Cordialement, BERGANZ François P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : vendredi 27 février 2009 11:19 À : BERGANZ François Cc : 'Henning Westerholt'; users@lists.kamailio.org Objet : Re: [Kamailio-Users] how to know if my gw servers are active ?
On 02/27/2009 12:10 PM, BERGANZ François wrote:
I need to dispatch to the asterisk which have less users connected
How do you get the asterisk with the less users connected? You have some data in a db table?
Cheers, Daniel
Cordialement, BERGANZ François P 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 11:07 À : BERGANZ François Cc : users@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:
If I cant use dispatcher module? Because, I don’t use the module algo to choose the dst.
Well, then perhaps you need to use another solution, or adapt the
dispatcher
code to your needs. May i ask what is the problem with existing
algorithms?
What exactly do you want to achive?
Cheers,
Henning
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users