[Serusers] Rewriting URI to remove "()-" with subst_uri

Sean Boran sean at boran.com
Mon Nov 8 11:09:16 CET 2004


Hi,

I tried to rewrite URLs containing brackets "()", to remove them before
passing the URL further on to PSTN.

I was approaching this thinking that subst_uri works like "sed", but perhaps
I've misunderstood?

        if ( uri =~ "sip:.*[\(\)\-]" ) {
            subst_uri('/\(//i');
            #subst_uri('/[\(\)\-]//i');
        }

Thanks in advance,

Sean




More information about the sr-users mailing list