[Serusers] URI rewriting

Giuseppe Parlato gparlato at tnet.it
Thu May 11 17:38:45 CEST 2006


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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060511/6dc42a57/attachment.htm>


More information about the sr-users mailing list