Hi jiri,
What we are trying to do is take a register request, save the location and then forward the register, with the contact re-writen to another SIP server. So I would register with the SER SIP Proxy using my laptops IP address and the SER would then forward my register request onto the other sip server with the contact re-writen to be jo@ser.server not jo@laptop.
Hope that make some sence...
-----Original Message----- From: Jiri Kuthan [mailto:jiri@iptel.org] Sent: Thursday, 20 November 2003 16:13 p.m. To: Stephen Miles; serusers@lists.iptel.org Subject: Re: [Serusers] Rewrite Contact Field
Stephen,
I hope you excuse if I leave RE definition to you, I am not into doing this dirty work either ;), especially if we did not see what RE resulted in the replacement you are talking about.
The command you wish to use to replace with a fixed value is textops/replace. To replace a string with a new string which includes part of the original string, you may use textops/subst.
More importantly, it would be good to understand to know why you need to mangle the requests -- there may be perhaps other ways to achive what you are trying to do. There is for example a contact mangling module, called mangler.
-jiri
At 03:45 AM 11/20/2003, Stephen Miles wrote:
Hi All,
Hoping you regular expression gurus out there can help me out a bit.
I am wanting to rewrite the Contact header field inside a sip message using either the replace or subst from the textops module. I've done my best but complex/long regular expressions are just a bit beyond me.
I want to change Contact "potato" sip:99196026@ns.commverge.co.nz:5060 to Contact "potato" sip:99196026@sipsrv2.tranzpeer.net:5060.
So far I can change bits of it and almost get it right but I am still seeing the original contact right after the new one i.e: Contact "potato" sip:99196026@ns.commverge.co.nz:5060.sip:99196026@sipsrv2.tranzpeer.net:5060
HELP
Thanks in advance, Stephen
This message and any attachments contain privileged and confidential information. If you are not the intended recipient of this message, you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immediately via email and then destroy this message and any attachments.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
Hi all,
Have a few problems setting ser up to act as a front end proxy talking to our back end SIP Server using nathelper.
What we need SER to do is simply proxy all requests from a user to a protected sip server on a private vlan. We need ser to fix the nat, record the users origanal location, rewrite the contact and ship it off to the sip proxy on the private vlan. So ALL user transactions will go through SER and the sip server on the private vlan sees ALL requests as coming from the SER proxy.
We have tried several configs but can't seem to nail it down.
Any help would be great. In essence we want it to act like a web proxy, request comes in from user, ser proxys it to sip server using itself as the contact and sending the responces back to the user including authentication information (i.e SER does not authenticate the user, it proxys the request to the sip proxy on the private vlan).
We got siproxd to do it but siproxd does not have the nathelper capabilities that ser does (and that we must have).
Thanks in advance, Stephen
----------------------------------------------------------------------------------------------- This message and any attachments contain privileged and confidential information. If you are not the intended recipient of this message, you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immediately via email and then destroy this message and any attachments.