[Users] record_route_preset()

Douglas Garstang dgarstang at oneeighty.com
Wed Mar 1 18:03:30 CET 2006


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:9220402 at pbx1-mgt0.ipt.oneeighty.com: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:9220402 at pbx1-mgt0.ipt.oneeighty.com:5060;user=phone SIP/2.0.
Record-Route: <sip:9220402 at sip: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:helge at smartnet.no]
Sent: Wednesday, March 01, 2006 8:53 AM
To: Andreas.granig at inode.info
Cc: devel at openser.org
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
Devel at openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel




More information about the sr-users mailing list