I'm changing the resource frequently, btw these are asterisk boxes with agents, an inbound call center.<br>Every morning they call me and tell "dimitri today we have 200 agent 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 available agents).<br>There is no problem with this and I never change the name of the 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, 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 boxes (so agent=200, and agent=150), the load to each destination will be zero (load=0). Buit there are still active calls to the destinations so if I have 150 calls to one, and if there will be a new call to the destination, after a lb_reload I see load=1, where in reality there was 151 calls.<br>
<br>See my problem?<br><br>Thanks,<br><br>Dimitri. <br><br><div class="gmail_quote">2010/3/9<span class="ik"></span><span> Bogdan-Andrei Iancu</span> <span class="hb">către <span class="g2">OpenSIPS</span>
</span><span class="iD">arată detaliile</span> <span id=":98" class="g3" title="9 martie 2010, 16:26" alt="9 martie 2010,
16:26">16:26 (acum 27 minute)</span><span dir="ltr"></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">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>
<div><div></div><div class="h5"><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>
> > Users mailing list<br>
</div></div>> > <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>
</div>> <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>
<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>
> 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>