[Serusers] URI rewriting

Ladislav Andel ladia6 at centrum.cz
Thu May 11 18:44:23 CEST 2006


search for regular expressions  e.g. 
http://en.wikipedia.org/wiki/Regular_expression

Ladislav

Giuseppe Parlato wrote:
> Hi all
>  
> I have the following URI rewriting for emergency end others special 
> kind of numbers..
>  
> if ((uri=~"^sip:80[0-9]+@") | (uri=~"^sip:1[0-9][0-9]@")) {
>                 rewritehost("my ip address");
>                 forward(uri:host, uri:port);
>                 break;
>         };
>  
> I would like someone explain me how to use [] ..for instance I want to 
> apply uri rewriting to all numbers that start with 800.xx.xx.xx, is 
> the first one I wrote ok?
>  
> Giuseppe
> ------------------------------------------------------------------------
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>   




More information about the sr-users mailing list