[SR-Users] Manipulate From URI username

Gertjan Wolzak g.wolzak at kazlow.nl
Wed Oct 4 10:34:34 CEST 2017


Hello Kamailions,

Im trying to manipulate the username from the from uri, but not having 
any luck, I must be doing something wrong.

I receive a from uri username that is prefixed with 888, now I am trying 
to remove the triple 8.


I have configured the following:

line
1090        if($fU=~"^888"){
1091                strip(3);
1092        }
1093        route(GETGROUP);

But I do not get any result, the debug shows the following:

29(9610) exec: *** cfgtrace:request_route=[MOMANX] 
c=[/usr/local/etc/kamailio/kamailio.cfg] l=1093 a=16 n=if
29(9610) exec: *** cfgtrace:request_route=[MOMANX] 
c=[/usr/local/etc/kamailio/kamailio.cfg] l=1091 a=45 n=strip
29(9610) exec: *** cfgtrace:request_route=[MOMANX] 
c=[/usr/local/etc/kamailio/kamailio.cfg] l=1093 a=5 n=route

Does anyone see what I am doing wrong?

Help would be appreciated.

Rgds,

Gertjan Wolzak




More information about the sr-users mailing list