[OpenSIPS-Users] Load balancer ORed resource types
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Sun Nov 15 21:12:11 CET 2009
Hi Taner,
I would suggest a different approach - as from LB point of view you do
not care too much if it VM or CONF - what is important is that each of
your box has only on channel, so I would define a resource the number of
channels each box can handle .
+----+----------+------------------------+---------------------------------+
| id | group_id | dst_uri | resources |
+----+----------+------------------------+---------------------------------+
| 1 | 555 | sip:service at host1.net <mailto:sip%3Aservice at host1.net> | channel=1 |
| 2 | 555 | sip:service at host2.net <mailto:sip%3Aservice at host2.net> | channel=1 |
+----+----------+------------------------+---------------------------------+
and do (when routing a VM or conference call) :
'load_balance(.., "channel");'
Regards,
Bogdan
Taner Sener wrote:
> Hi,
>
> I'm using load balancer module on 1.6.0-notls (i386/linux) to balance
> incoming sip calls to sip clients. The case is; my sip clients are
> capable of serving multiple types of calls. But not in the same time
> like in the definition "vm=1;conf=1". Only one of them is available at
> that moment. They can process either a vm call, either a conf call;
> not one vm call and one conf call. Is there a way to define it?
>
> +----+----------+------------------------+---------------------------------+
> | id | group_id | dst_uri | resources |
> +----+----------+------------------------+---------------------------------+
>
> | 1 | 555 | sip:service at host1.net <mailto:sip%3Aservice at host1.net> | vm=1; conf=1 |
> | 2 | 555 | sip:service at host2.net <mailto:sip%3Aservice at host2.net> | vm=1; conf=1 |
>
> +----+----------+------------------------+---------------------------------+
>
> Current 'resources' field of load_balancer table ANDs resource types
> given with semi-colon and I when I invoke
>
> 'load_balance(.., "vm")'
>
> and
>
> 'load_balance(.., "conf")'
>
> second load balanced call receives busy and balancing fails there
> because that client is serving to vm call. How can I configure
> load_balanced module to select it right?
>
> Thanks,
> Taner
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list