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
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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers