[Kamailio-Users] LCR problem with "id" column and match priorities.

Juha Heinanen jh at tutpro.com
Wed Oct 21 15:25:17 CEST 2009


Ricardo Martinez writes:

 > mysql> select * from lcr where prefix=1351 order by id;
 > +-----+--------+----------+--------+----------+
 > | id  | prefix | from_uri | grp_id | priority |
 > +-----+--------+----------+--------+----------+
 > | 127 | 1351   |          |     51 |        1 | 
 > | 128 | 1351   |          |     43 |        2 | 
 > +-----+--------+----------+--------+----------+
 > 
 > The dump command shows the correct order and priority for the prefix 1351:
 > 
 > GW::  GRP_ID=51 IP_ADD=XX.XX.XX.13 HOSTNAME= PORT=5060 SCHEME=sip TRANSPORT=udp STRIP=4 TAG=1351 WEIGHT=25 FLAGS=0 PING=1
 > GW::  GRP_ID=51 IP_ADD=XX.XX.XX.16 HOSTNAME= PORT=5060 SCHEME=sip TRANSPORT=udp STRIP=4 TAG=1351 WEIGHT=25 FLAGS=0 PING=1
 > GW::  GRP_ID=51 IP_ADD=XX.XX.XX.32 HOSTNAME= PORT=5060 SCHEME=sip TRANSPORT=udp STRIP=4 TAG=1351 WEIGHT=25 FLAGS=0 PING=1
 > GW::  GRP_ID=51 IP_ADD=XX.XX.XX.35 HOSTNAME= PORT=5060 SCHEME=sip TRANSPORT=udp STRIP=4 TAG=1351 WEIGHT=25 FLAGS=0 PING=1
 > RULE::  PREFIX=1351 FROM_URI= GRP_ID=51 PRIORITY=1
 > RULE::  PREFIX=1351 FROM_URI= GRP_ID=43 PRIORITY=2

there is still something wrong with your data, because grp 43 has no
gateways.

i'm trying to reconstruct your configuration.

-- juha




More information about the sr-users mailing list