[OpenSIPS-Users] opensips loadbalancer with db_mysql

Tushar Jain tusshar.jain at gmail.com
Thu Jun 30 16:07:16 CEST 2011


Hi,

In your load_balancer table you have to mention the dst_uri (gateway client
in ur freepbx) resources(no of channels available in your freepbx), Probe
mode set to be 2 if you want to probe your freepbx after a given period.

| id | group_id | dst_uri                             | resources |
probe_mode | description |
+----+------------+---------------------------------------+-----------+-----------------------+-----------------+
|  1 |        2    | sip:OpenSIPs at x.x.x.x      | sip=5     |          2
      | FreePBX   |


Anyway when you are having single sip client in front of your opensips then
you dont need to call Load_balancer.

Do share your conf file for better understanding.

Regards
Tushar





On Thu, Jun 30, 2011 at 6:22 PM, vip killa <vipkilla at gmail.com> wrote:

> when i try to make a call i get this in the opensips log:
>  opensip1 /usr/local/sbin/opensips[32130]:
> ERROR:load_balancer:do_load_balance: unknown resource in input string
>
> I think its because my load_balancer table is empty but i do not know what
> im supposed to put in there...
>
> mysql> describe load_balancer;
> +-------------+------------------+------+-----+---------+----------------+
> | Field       | Type             | Null | Key | Default | Extra          |
> +-------------+------------------+------+-----+---------+----------------+
> | id          | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
> | group_id    | int(11) unsigned | NO   |     | 0       |                |
> | dst_uri     | char(128)        | NO   | MUL | NULL    |                |
> | resources   | char(255)        | NO   |     | NULL    |                |
> | probe_mode  | int(11) unsigned | NO   |     | 0       |                |
> | description | char(128)        | NO   |     |         |                |
> +-------------+------------------+------+-----+---------+----------------+
>
> Could someone fill me in on what is supposed to go in the table? I only
> have 1 FreeSWITCH box behind opensips.
> Thanks.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Regards

Tushar Jain


"two roads diverged in a wood, and I - I took the one less traveled by, and
that has made all the difference"

--Robert Frost "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110630/11ca2017/attachment.htm>


More information about the Users mailing list