On 03/23/2016 03:15 PM, Fred Posner wrote:
I have a main listen=udp:192.168.25.31 advertise PUBLIC:5060
and then when needed...
set_advertised_address("192.168.25.31");
as in...
if ($rd=~"192.168.25") { set_advertised_address("192.168.25.31"); }
Cool. It sounds like Daniel's suggestion might make this even easier:
listen=udp:192.168.25.31:5060 advertise PUBLIC:5060 listen=udp:192.168.25.31:5080 # private
Then you can get rid of the logic and just modulate this with
$fs = "udp:192.168.25.31:5060"; $fs = "udp:192.168.25.31:5080";
-- Alex