[OpenSIPS-Users] Change the Via sent by OpenSIPS

John Quick john.quick at smartvox.co.uk
Thu Sep 22 18:41:33 CEST 2011


Hi Andrew,
Thanks for the advice. I should have found that function!
Using set_advertised_address() has fixed it. All is working ok now.
I also used alias= to set both internal and external addresses.
It already added Record-Route header, but I added some logic to choose
whether rr should be internal or external address.
Did not need to set mhomed=1 because the server only has 1 network
interface.
John Quick

-----Original Message-----
From: Andrew Pogrebennyk [mailto:apogrebennyk at sipwise.com] 
Sent: 21 September 2011 13:25
To: john.quick at smartvox.co.uk; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Change the Via sent by OpenSIPS

On 09/21/2011 01:54 PM, John Quick wrote:
> Now we are trying to make inbound calls go to some IVR's on his LAN so 
> I would like the Via to be the LAN address.
> Is there any way to change advertised_address on a per-call basis?

You can use set_advertised_address() core function:
http://www.opensips.org/Resources/DocsCoreFcn17#toc136
Also you need opensips to insert two Record-Route headers, and set mhomed=1,
IIRC.





More information about the Users mailing list