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