Bogdan,
Version 1.0.0 of OpenSER... Actually, I found that by setting
'advertised_address', OpenSER would put that value in the Via header, and
that's seems to be what Asterisk is using when it sends messages back to OpenSER.
I wish I knew the exact difference between the meaning of the Record-Route and Via
headers..... :O
I've also found that OpenSER doesn't put the 'advertised_address' in the
Via of BYE messages from phones that it passes to Asterisk. It puts the first interface in
there instead. Any idea why this would be? It puts the Via from
'advertised_address' in everything else....
-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
Sent: Wed 3/1/2006 11:43 AM
To: Douglas Garstang
Cc: users(a)openser.org
Subject: Re: [Users] record_route_preset()
Hi Doug,
I just tested and I'm not able to reproduce your problem. The correct
usage is:
record_route_preset("172.31.140.205");
What version of openser are you using? if devel, be sure you have the
latest CVS version.
anyhow, for your purposes, the correct approach will be :
force_send_socket(udp:172.31.140.205);
record_route();
by this you will select the desired outgoing interface.
regards,
bogdan
Douglas Garstang wrote:
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@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@pbx1-mgt0.ipt.oneeighty.com:5060;user=phone SIP/2.0.
Record-Route: <sip:9220402@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@smartnet.no]
Sent: Wednesday, March 01, 2006 8:53 AM
To: Andreas.granig(a)inode.info
Cc: devel(a)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