I have read and re-read the overview of the lcr module but still think I'm failing to understand it.
What I want to achieve is routing to different gateways based on number dialled e.g. 001, 0044, 0086 should result in different gateways.
Looking at the tables, I would guess that the link is lcr -> gw_grp -> gw as shown in the following example: lcr prefix from_uri grp_id priority 001 1 1 001 2 2 0044 3 1 0086 4 1 0086 5 2
gw_grp grp_id grp_name 1 US 1 2 IS 2 3 UK 1 4 China 1 5 China 2
gw gw_name grp_id ip_addr port uri_scheme transport strip prefix A 1 192.1 5060 1 011 B 2 192.2 5060 1 011 etc
I don't think I have understood correctly because the documentation implies that gw_grp is optional.
Is there a tutorial for this module that could calrify my understanding? I'm also trying to understand what the various avps are used for. Any advice appreciated.
Regards
Cameron
CSB writes:
I don't think I have understood correctly because the documentation implies that gw_grp is optional.
gw_grp table is optional, but gw_grp column values in lcr and gw tables are not.
your example tables looked ok to me.
-- juha
gw_grp table is optional, but gw_grp column values in lcr and gw tables are not.
your example tables looked ok to me.
Thanks
Regarding the avp: the user's guide says "Gateway selection is based on caller's RPID URI". Does this mean that the gateway is selected if it matches the From pattern of the gateway i.e. prefix is ignored? If there is no match on RPID URI, then is the normal match attempted (From URI and user part of Request-URI)?
Regards
Cameron
CSB writes:
Regarding the avp: the user's guide says "Gateway selection is based on caller's RPID URI". Does this mean that the gateway is selected if it matches the From pattern of the gateway i.e. prefix is ignored? If there is no match on RPID URI, then is the normal match attempted (From URI and user part of Request-URI)?
both from uri and r-uri userpart must match. i'll try to clarify the text in 1.3 and trunk.
-- juha