Hi Bogdan,<br><br>I'm running OpenSIPS 1.6.1<br><br>version: opensips 1.6.1-notls (i386/linux)<br>flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>svnrevision: 2:6599M<br>@(#) $Id: main.c 6169 2009-09-22 12:48:37Z bogdan_iancu $<br>
main.c compiled on 01:18:50 Feb 15 2010 with gcc 4.3.4<br><br>BTW, what I'm doing frequently is to resize the existing resources, and adding/removing new asterisk gws in the load_balancer table.<br><br>Thanks,<br>Dimitri<br>
<br><br><br><div class="gmail_quote">2010/3/10<span> Bogdan-Andrei Iancu</span> <span class="hb">către <span class="g2">OpenSIPS</span> </span><span class="iD">arată detaliile</span> <span id=":ac" class="g3" title="10 martie 2010, 12:52" alt="10 martie 2010, 12:52">12:52 (acum 5 ore)</span><span dir="ltr"></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Dimitri,<br>
<br>
Ok, so you do lb_reload just because you need to add some more<br>
destinations in the balancer. You do not change the properties of the<br>
already existing destination - this was what I was interested in.<br>
<br>
Let me run some checks to see what about. BTW, what opensips version are<br>
you using ?<br>
<div><div></div><div class="h5"><br>
Regards,<br>
Bogdan<br>
<br>
<br>
Dmitri G. wrote:<br>
> I'm changing the resource frequently, btw these are asterisk boxes<br>
> with agents, an inbound call center.<br>
> Every morning they call me and tell "dimitri today we have 200 agent<br>
> for xx.xx.xx.xx, and we have 150 for yy.yy.yy.yy".<br>
> So I run a lb_resize to change the resource figure (the number of<br>
> available agents).<br>
> There is no problem with this and I never change the name of the<br>
> resource, just the figure. I can resize it without any problems.<br>
><br>
> But in case if they call me to add a new asterisk ip with resources,<br>
> then I need to insert it to a DB, to the load_balancer table.<br>
> But how to enable to use the new gw other than using lb_reload?<br>
><br>
> If I run the lb_reload, and there was concurrent calls to the asterisk<br>
> boxes (so agent=200, and agent=150), the load to each destination will<br>
> be zero (load=0). Buit there are still active calls to the<br>
> destinations so if I have 150 calls to one, and if there will be a new<br>
> call to the destination, after a lb_reload I see load=1, where in<br>
> reality there was 151 calls.<br>
><br>
> See my problem?<br>
><br>
> Thanks,<br>
><br>
> Dimitri.<br>
><br>
> 2010/3/9 Bogdan-Andrei Iancu către OpenSIPS arată detaliile 16:26<br>
> (acum 27 minute)<br>
><br>
> Ok, I got that :)<br>
><br>
> my question was - what you change in DB (before doing the reload)? do<br>
> you change the definition of the already existing destinations (like<br>
> resources) ?<br>
><br>
> Regards,<br>
> Bogdan<br>
><br>
> Dmitri G. wrote:<br>
> > Hi Bogdan,<br>
> ><br>
> > I mean it's setting the load= figures to zero for all gws in the<br>
> > load_balancer table.<br>
> > So if I have 2 gws with load=136 and load=227, after running<br>
> > opensipsctl fifo lb_reload, then load will be zero (load=0).<br>
> ><br>
> > Dimitri<br>
> ><br>
> > 2010/3/9 Bogdan-Andrei Iancu către OpenSIPS arată detaliile 15:57<br>
> > (acum 18 minute)<br>
> ><br>
> > Hi Dimitri,<br>
> ><br>
> > reloading the data should not delete the dialog profiles, unless you<br>
> > change the name of the resources (in the destination definition).<br>
> > Is this your case?<br>
> ><br>
> > Regards,<br>
> > Bogdan<br>
> ><br>
> > Dmitri G. wrote:<br>
> > > Hi,<br>
> > ><br>
> > > Is there a way to keep the number of the dialogs after running the<br>
> > > lb_reload command through openipsctl?<br>
> > > When I add a new gateway to the mysql able and execute lb_reload<br>
> > > command, the number of the dialogs are resets to zero in every<br>
> > > gateways (I have checked it with lb_list, load counters are zero)<br>
> > ><br>
> > > Thanks,<br>
> > > Dimitri<br>
> > ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> > ><br>
> > > _______________________________________________<br>
> > > Users mailing list<br>
> > > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
</div></div>> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>>><br>
<div class="im">> > > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> > ><br>
> ><br>
> ><br>
> > --<br>
> > Bogdan-Andrei Iancu<br>
> > <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
</div>> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>>><br>
<div><div></div><div class="h5">> > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> ><br>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
> > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> ><br>
><br>
><br>
> --<br>
> Bogdan-Andrei Iancu<br>
> <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>