I have OpenSER installed on a system with 4 network interfaces. When OpenSER 
sends out an INVITE to an Asterisk system, it puts the Record-Route header in 
the SIP message:

U 216.186.140.205:5060 -> 172.31.140.203:5060
INVITE sip:[EMAIL PROTECTED]:5060;user=phone SIP/2.0.
Record-Route: <sip:216.186.140.205;ftag=C0A1B748-F1234161;lr=on>.

However, I would like it to put a different IP address in the Record-Route 
header, to force the Asterisk system at the other end to send replies back on a 
certain interface. I tried using record_route_preset instead of record_route, 
like this:

record_route_preset("172.31.140.205");

Now, when SIP messages go out, they look like this:

U 216.187.140.205:5060 -> 172.31.140.203:5060
INVITE sip:[EMAIL PROTECTED]:5060;user=phone SIP/2.0.
Record-Route: <sip:[EMAIL 
PROTECTED]:172.31.140.205:5060;ftag=D26AD271-F90F8EC6;lr=on>.

Huh? Why has OpenSER put the to URI in the record route? That doesn't look 
right to me.

I also tried using record_route_preset like this:
record_route_preset("172.31.140.205:5060");
record_route_preset("sip:172.31.140.205");
record_route_preset("sip:172.31.140.205:5060");

and it always puts the to uri in there. Why???? Would GREATLY appreciate some 
advice on this.
Doug.

-----Original Message-----
From: Helge Waastad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 01, 2006 8:53 AM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: [Devel] Re: Loadbalancing using Path-HF with NAT-Support


Hi,
Looking forward to try it out.

Until now, the path-header (including nat-ping script) works as a charm
for me, but this will probably make my loadbalancer much cleaner :-)

br hw



-- 
Helge Waastad
Senior Konsulent
Systemavdelingen
Smartnet

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to