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:serv...@host1.net <mailto:sip%3aserv...@host1.net> | 
channel=1                       |
|  2 |      555 |  sip:serv...@host2.net <mailto:sip%3aserv...@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:serv...@host1.net <mailto:sip%3aserv...@host1.net> | 
> vm=1; conf=1                    |
> |  2 |      555 |  sip:serv...@host2.net <mailto:sip%3aserv...@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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to