I am still a little baffled by the new LCR table structures and i am having a hard time figuring out how to use them. I want to different LCR gateways for two different prefixes. When I load up this configuration, lcr.dump_gws is only returning the Gateway with Lcr ID: 1. What am I doing wrong here?
Here is my current table structure:
---------------------------------------- LCR Gateway List ---------------------------------------- Id 1 Lcr Id 1 Gw Name: Host 1 Ip Addr: X.X.X.X Uri: 1 Transport 1
Id 2 Lcr ID 2 Gw Name: Host 2 Ip Addr: Y.Y.Y.Y Uri: 1 Transport 1
---------------------------------------- LCR Rule List: ---------------------------------------- Id: 1 Lcr Id: 1 Prefix: 1555 Stopper 0 Enabled 1
Id: 2 Lcr Id: 2 Prefix: 1444 Stopper: 0 Enabled: 1
---------------------------------------- LCR Target List: ---------------------------------------- Id: 1 Lcr Id: 1 Rule Id: 1 Gw Id: 1
Id: 2 Lcr Id: 2 Rule Id: 2 Gw Id: 2
Geoffrey Mina writes:
I am still a little baffled by the new LCR table structures and i am having a hard time figuring out how to use them. I want to different LCR gateways for two different prefixes. When I load up this configuration, lcr.dump_gws is only returning the Gateway with Lcr ID: 1. What am I doing wrong here?
perhaps you have not set lcr_count module param. it defaults to 1.
-- juha
OK. I updated that to 10 and now it loads both. Is there any harm in making it 100 even though I will never use that many? Just so I don't need to restart Kamailio to add new routes?
On Fri, Jul 5, 2013 at 10:17 AM, Juha Heinanen jh@tutpro.com wrote:
Geoffrey Mina writes:
I am still a little baffled by the new LCR table structures and i am
having
a hard time figuring out how to use them. I want to different LCR
gateways
for two different prefixes. When I load up this configuration, lcr.dump_gws is only returning the Gateway with Lcr ID: 1. What am I
doing
wrong here?
perhaps you have not set lcr_count module param. it defaults to 1.
-- juha
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
Geoffrey Mina writes:
OK. I updated that to 10 and now it loads both. Is there any harm in making it 100 even though I will never use that many? Just so I don't need to restart Kamailio to add new routes?
the param is there in order to save shared memory and speed up those functions that operate on lcr instances. if you don't run out of shm memory, you can set lcr_count to whatever value you wish.
-- juha