[OpenSIPS-Users] help in configuring load balancer for outbound dial

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Jun 10 20:17:08 CEST 2009


Hi Leo,

so shortly, your case is:

1) you successfully do LB until all the destination are full (5 calls) 
-> then load_balance() returns false in script

2) you do a lb_reload - what do you change in the table?

3) you try do route call again and still fails ?   are the initial 5 
calls still going?

Regards,
Bogdan

Leo Thomas Selvaraj wrote:
>
> Hi,
>
>  
>
> I had configured load balancer for outdialing. load_balancer table 
> information mentioned below.
>
>  
>
>  +----+----------+------------------+-----------+---------------+
>
>  
>
>  | id | group_id | dst_uri          | resources | description   |
>
>  
>
>  +----+----------+------------------+-----------+---------------+
>
>  
>
>  |  1 |        1 | sip:10.128.22.38 | pstn=2    | standby gw    |
>
>  
>
>  |  2 |        1 | sip:10.128.22.45 | pstn=3    | production gw |
>
>  
>
>  +----+----------+------------------+-----------+---------------+
>
>  
>
> The load balancer is working correctly for the first cycle, I try to 
> make five calls and it makes two calls to .38 gateway and then three 
> calls to .45 gateway. After completing one cycle the $du value is 
> setting as null if I try to make subsequent calls and the calls were 
> failing.  If I issue lb_reload using MI from command line  ( 
> opensipsctl fifo lb_reload ) it starts again. I want this to run 
> continuously without issuing any MI commands.
>
>  
>
> From the logs I can see that $du is set to null. I am not sure whether 
> I am making any mistake.
>
>  
>
> I think something is wrong in setting the profile and fetching data 
> for the profile using get_profile_size in do_load_balancer function in 
> lb_data.c. The profile is getting set as *lbXpstn*, but when I tried 
> to print the value res[k]->profile it always displays a junk value.
>
>  
>
> Thanks,
>
> *Leo Thomas Selvaraj* 
>
>  T: +1 609-987-0044 x 139 | F: +1 609-987-9787
>
> ------------------------------------------------------------------------
>
> cid:image001.gif at 01C97492.FCB6B790
>
>  The information contained in this e-mail message or messages (which 
> includes any attachments) is confidential and may be legally 
> privileged. It is intended only for the use of the person or entity to 
> which it is addressed.
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list