i looked the tables and according to them request uri user should be 77411234567 when request forwarded. --text follows this line-- however, i don't understand you script:
xlog("L_WARN", "ENTRO IN ROUTE LCR
********************************** \n");
xlog("L_WARN","test before call load_gws() ruri='$ru'\n"); if (!load_gws(1)) { . . . . . . if (next_gw()) {
because according to the above, next_gw() is called only when load_gws(1) call has failed.
i made test using your table contents and lcr module worked as expected:
Apr 29 13:56:41 sip /usr/sbin/sip-proxy[8129]: INFO: INVITE sip:09711234567@test.fi by jh@test.fi as sip:jh@test.fi from <192.98.102.10> is authorized Apr 29 13:56:41 sip /usr/sbin/sip-proxy[8129]: INFO: Routing INVITE sip:77411234567@192.98.102.10 to PSTN
-- juha