Re: [SR-Users] Help find out where to modify request uri

2011-06-20 Thread Simone Felici
Sorry again! I've found how to change it but I'm missing something maybe stupid. Having the new number to call into a variable $alias_number I can print it out as follow: xlog("L_ERR", "MATCH USERNAME - %$alias_number - %$user_number"); I've tried to rewrite it into the if-statement using both

Re: [SR-Users] Help find out where to modify request uri

2011-06-20 Thread Simone Felici
Hi again, I've found where I can collect all infromations i need in the "INBOUND" route (called username and alias). I've saved them into two variables that I've printed out to log to confirm. Into NAT_MANGLE route I can match the uri that I should change, based on a username: if (uri=~"^si

Re: [SR-Users] Help find out where to modify request uri

2011-06-17 Thread Simone Felici
Thank you for your answer. You've absolutely right on the linked ser.cfg. I send a cleaned up and indented version. It's attached. Meanwhile I'll try out a little your solution. Thank's Simon Il 17/06/2011 15:40, Edson - Lists ha scritto: Simone, At a first glance, make Your magic on the r

Re: [SR-Users] Help find out where to modify request uri

2011-06-17 Thread Edson - Lists
Simone, At a first glance, make Your magic on the route[INBOUD], just after ALIAS lookup. Didn't see further, but you should make the same some point before use of some forward function (t_relay,p.ex.) Edson. P.S.: Your configuration file is a mess to read, since you are asking us to read