first of all, spaces and tabs are not allowed into SIP URIs.
second, of cource, you can use subst_uri for this purpose.
bogdan
Sean Boran wrote:
Perhaps a final Question on this topic?
How can I strip unwanted characters from the URL, e.g. spaces, "(" and the
like.
I seen the refernce to subst_uri and its "sed" like syntax.
But presumably I can't do something like:
subst_uri('/[\(\ \)]//i')
I'd like to help user who paste tel numbers fro their outlook contas into a
sip phone, to that I receive urls like:
sip:(031) 2616254(a)myserver.com
and rewrite to
sip:0312616254@myserver.com
Thanks,
Sean
-----Original Message-----
From: Bogdan-Andrei IANCU [mailto:iancu@fokus.fraunhofer.de]
Sent: Freitag, 5. November 2004 12:50
To: Sean Boran
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Rewriting a "+" to 00 in a sip URL
no, strip and prefix applies only to username part of RURI.
bogdan
Sean Boran wrote:
if (uri=~"sip:+") {
strip(1);
prefix("00");
}
Will this not cause the "s" in "sip" to be replaces with 00?
Thanks very much for the quick help!
Sean
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers