[OpenSIPS-Users] Change the Via sent by OpenSIPS

Andrew Pogrebennyk apogrebennyk at sipwise.com
Wed Sep 21 14:25:10 CEST 2011


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