Hello Ricardo,

I already wrote on this list about this issue. Currently the only way to do it is to disable duplicate gws checking in sources itself.
In general, gw duplication checking should be extended to check not only by ip_addr or its hostname, but to include 'tag' and even 'strip' columns.
IMHO duplication checking could be removed at all and only DB unique constraint checking used.

Antanas

On 2011.02.04 22:41, Ricardo Martinez wrote:

Nobody on this one?.

 

Ricardo.-

 

De: Ricardo Martinez [mailto:rmartinez@redvoiss.net]
Enviado el: miércoles, 02 de febrero de 2011 17:58
Para: 'sr-users@lists.sip-router.org'
Asunto: LCR module : same IP address for different prefix.

 

Hello.

We’re using the LCR module with version 3.1.1 of Kamailio.  We’re trying to add two gateways, with the same IP address, we have this configuration running in the previous version of Kamailio (v 1.5), without any problem, but in this version seems to have some issues.

 

This is what I’m trying to do :

mysql> select * from lcr_gw;

+----+--------+---------+---------------+----------+------+--------+------------+-----------+-------+------+-------+---------+

| id | lcr_id | gw_name | ip_addr       | hostname | port | params | uri_scheme | transport | strip | tag  | flags | defunct |

+----+--------+---------+---------------+----------+------+--------+------------+-----------+-------+------+-------+---------+

|  1 |      1 | GW_1    | 10.0.0.209    | NULL     | 5060 | NULL   |          1 |         1 |     3 | 303  |     1 |    NULL |

|  8 |      1 | GW_33   | 10.0.0.209    | NULL     | 5060 | NULL   |          1 |         1 |     3 | 4411 |     1 |    NULL |

|  6 |      1 | GW_6    | 10.0.0.212    | NULL     | 5060 | NULL   |          1 |         1 |     5 | 308  |     1 |    NULL |

+----+--------+---------+---------------+----------+------+--------+------------+-----------+-------+------+-------+---------+

 

And this is the output from the logs :

 

/usr/local/sbin/kamailio[2829]: ERROR: lcr [lcr_mod.c:818]: gw <10.0.0.209, 5060, > is not unique

 

What could be the problem?. Os simply the new LCR does not support have two gateways with the same IP address?

 

Thanks,

Ricardo Martinez.-

 

_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Antanas Masevičius
Technikos direktorius
UAB "Nacionalinis telekomunikaciju tinklas"
Tel.  +370 5 2056000
Tel.  +370 700 00031 (tiesioginis)
Fax.  +370 700 00034
el.p: antanas.masevicius@ntt.lt
www.ntt.lt
www.spykas.com