[Serusers] URI Rewriting - Part 2 :)

Darren Nay dnay at libertyisp.com
Wed Feb 11 20:20:44 CET 2004


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 at libertyisp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20040211/624e02a2/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ser.cfg.txt
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20040211/624e02a2/attachment.txt>


More information about the sr-users mailing list