Re: [SR-Users] [Kamailio-users] Weight based routing

2010-07-30 Thread Chandrakant Solanki
On Tue, Jul 27, 2010 at 1:13 PM, marius zbihlei marius.zbih...@1and1.rowrote:

 Alex Balashov wrote:

 Simplest thing to do would be to use 'dispatcher' with round-robin
 strategy and enter the servers in the table or list file in duplicate, in
 proportion to the weight allocation they have.

 On 07/27/2010 01:55 AM, Chandrakant Solanki wrote:



 Hello

 Also the carrierroute module has this capability.

 Cheers
 Marius

  Hello,

 I have setup 3 SIP server. It should be Kamailio, Asterisk or Any SIP
 Server.

 I have setup 3 server say Server A, Server B and Server C and each has
 weight like 50, 30, 20 in percentage.

 And I taken 10 calls and try to forward call based on weight.

 Is this possible in kamailio's module.. and if yes then which module
 will help me?

 Any Idea..

 --
 Regards,

 Chandrakant Solanki



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users









Hi

Thanks for reply.

I have look into carrierroute module, it seems that my requirement is
fulfill.

But i have multiple carrier in my carrier_name table, say car1, car2, car3,
default, and I want them load dynamically on INVITE of any user based on its
probability. Above all carrier has 0.1 probability and each point to
different asterisk machine.

How could it be possible..??

Any Idea..?

-- 
Regards,

Chandrakant Solanki
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] [Kamailio-users] Weight based routing

2010-07-30 Thread marius zbihlei

Chandrakant Solanki wrote:


Hi

Thanks for reply.

I have look into carrierroute module, it seems that my requirement is 
fulfill.


But i have multiple carrier in my carrier_name table, say car1, car2, 
car3, default, and I want them load dynamically on INVITE of any user 
based on its probability. Above all carrier has 0.1 probability and 
each point to different asterisk machine.


How could it be possible..??

Any Idea..?
 
--

Regards,

Chandrakant Solanki



Hello,

I think you can do things much simpler . For example you don't event 
need a database, you could use carrierroute in file mode . Just have one 
sp-route.conf file containing the entries like in this example:


domain my_domain {
   prefix NULL {
   max_targets = 10
   target asterisk_server1:5060 {
   prob = 0.1
   hash_index = 1
   status = 1
   comment = asterisk server 1
   }
   target asterisk_server2:5060 {

   prob = 0.1
   hash_index = 2
   status = 1
   comment = aserisk server 2
   }
  .
  }
}

Then in the cfg file you could specify modparam(carrierroute, 
config_file, /path/to/sp-route.conf)


To balance INVITEs, in you cfg you call

if(method == INVITE){
  cr_route(default, my_domain, $rU, $rU,  call_id);
  forward();
}


This will balance your invites based on the Call-id header.(it will be 
sent randomly to one of the hosts based on the weight). If you want you 
could balance them based on from_user(Call originating from one user 
will always go to the same asterisk machine). Note that in file mode you 
only have 1 carrier(called default), but you can have several domains.


Hope this helps
Marius



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] [Kamailio-users] Weight based routing

2010-07-27 Thread marius zbihlei

Alex Balashov wrote:
Simplest thing to do would be to use 'dispatcher' with round-robin 
strategy and enter the servers in the table or list file in duplicate, 
in proportion to the weight allocation they have.


On 07/27/2010 01:55 AM, Chandrakant Solanki wrote:

  

Hello

Also the carrierroute module has this capability.

Cheers
Marius

Hello,

I have setup 3 SIP server. It should be Kamailio, Asterisk or Any SIP
Server.

I have setup 3 server say Server A, Server B and Server C and each has
weight like 50, 30, 20 in percentage.

And I taken 10 calls and try to forward call based on weight.

Is this possible in kamailio's module.. and if yes then which module
will help me?

Any Idea..

--
Regards,

Chandrakant Solanki



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




  



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] [Kamailio-users] Weight based routing

2010-07-27 Thread Daniel-Constantin Mierla



On 7/27/10 9:43 AM, marius zbihlei wrote:

Alex Balashov wrote:
Simplest thing to do would be to use 'dispatcher' with round-robin 
strategy and enter the servers in the table or list file in 
duplicate, in proportion to the weight allocation they have.


just to note here that the devel version of dispatcher has dedicated 
weight-based load balancing algorithm - of course, will be available as 
stable with next major release - 3.1.0.


Cheers,
Daniel




On 07/27/2010 01:55 AM, Chandrakant Solanki wrote:


Hello

Also the carrierroute module has this capability.

Cheers
Marius

Hello,

I have setup 3 SIP server. It should be Kamailio, Asterisk or Any SIP
Server.

I have setup 3 server say Server A, Server B and Server C and each has
weight like 50, 30, 20 in percentage.

And I taken 10 calls and try to forward call based on weight.

Is this possible in kamailio's module.. and if yes then which module
will help me?

Any Idea..

--
Regards,

Chandrakant Solanki



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users






___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



--
Daniel-Constantin Mierla
http://www.asipto.com/


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users