[SR-Users] R: R: lcr module: strip and tag

Juha Heinanen jh at tutpro.com
Fri Apr 29 13:01:08 CEST 2011


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 at test.fi> by <jh at test.fi> as <sip:jh at 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 at 192.98.102.10> to PSTN

-- juha





More information about the sr-users mailing list