Hey All,
I've been messing with this URI rewriting all day yesterday and today and I am still having some problems.
I am able to re-write the request URI okay, but I can't rewrite the To: and From: fields in the SIP packet. Is that possible, and if so, how do I do it?
I've tried using the subst function in the textops module. It doesn't seem to be re-writing all fields though. It still seems to only affect the request URI and not the To: or From: fields. Maybe I am doing something wrong?
I have attached my latest ser.cfg file for your viewing pleasure. :) I am trying to keep all requests that are between our local registered locations stripped to area code and phone num, and all requests that are to be relayed to the PSTN gateway need to have a +1 prefix added to them for e164 compatibility.
Any help would be VERY much appreciated.
Thanks, Darren Nay - dnay@libertyisp.com
On 11-02 14:20, Darren Nay wrote:
Hey All,
I've been messing with this URI rewriting all day yesterday and today and I am still having some problems.
I am able to re-write the request URI okay, but I can't rewrite the To: and From: fields in the SIP packet. Is that possible, and if so, how do I do it?
No, that is not possible. A proxy cannot rewrite To or From header fields, you would need a B2BUA for that.
Jan.
At 08:20 PM 2/11/2004, Darren Nay wrote:
Hey All,
I've been messing with this URI rewriting all day yesterday and today and I am still having some problems.
I am able to re-write the request URI okay, but I can't rewrite the To: and From: fields in the SIP packet. Is that possible, and if so, how do I do it?
It is possible but it will lead to really really bad interop problems. Any rewrites to SIP addresses are likely to cause dialog/transaction matching issues. So I really discourage such attempts.
If you think you really need SIP mangling, than you need a B2BUA (see for example www.iptel.org/aa) -- there is no other working way around it.
-jiri
I've tried using the subst function in the textops module. It doesn't seem to be re-writing all fields though. It still seems to only affect the request URI and not the To: or From: fields. Maybe I am doing something wrong?
I have attached my latest ser.cfg file for your viewing pleasure. :) I am trying to keep all requests that are between our local registered locations stripped to area code and phone num, and all requests that are to be relayed to the PSTN gateway need to have a +1 prefix added to them for e164 compatibility.
Any help would be VERY much appreciated.
Thanks, Darren Nay - mailto:dnay@libertyisp.comdnay@libertyisp.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/