Re: [OpenSIPS-Users] Change the Via sent by OpenSIPS

2011-09-22 Thread John Quick
: 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

Re: [OpenSIPS-Users] Change the Via sent by OpenSIPS

2011-09-21 Thread Andrew Pogrebennyk
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

[OpenSIPS-Users] Change the Via sent by OpenSIPS

2011-09-21 Thread John Quick
One of my clients has installed his opensips server behind NAT. So I use advertised_address to make it use the external IP in Via's and Contact headers. This works great for outbound calls. The version of OpenSIPS is 1.7.0-notls. Now we are trying to make inbound calls go to some IVR's on his LAN