I am still struggling a little with this, I have everything working, postgres & lcr modules loading what I am looking for for is a difinative working example of the information in the db tables.
my db tables: lcr_rule (lcr_id, prefix, from_uri, stopper, enabled, id)
lcr_rule_target (rule_id, gw_id, priority, weight, id, lcr_id)
lcr_gw gw_name, ip_addr, port, uri_scheme, transport, params, hostname, strip, prefix, tag, flags, defunct, id, lcr_id)
a couple simple examples that will update the following would be VERY helpful
original uri sip:1103@10.1.1.58 updated uri sip:1103@10.1.1.60
original uri 7802291103@10.1.1.58 updated uri 17802291103@10.1.1.61
at present I get the following errors 'error while parsing R-URI' & the load_gw fails.
Anything you can provide that will prevent my head from exploding would be very much appreciated.
Jeff
On 2012-03-20, at 11:26 PM, Juha Heinanen wrote:
Jeff Russell writes:
We have a table with about 145,000 NPA/NXX's with differing rates and carriers, I would like to use the LCR module to load this table and rewrite the URI based on the best rate for dialled number and or a default route.
lcr module selects the gateways first based on longest matching prefix of called number and second based on priority of the gateways defined for the matched prefix. perhaps you can map your rates to these priorities.
-- 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