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

--
Alex Balashov | Principal | Evariste Systems LLC
1447 Peachtree Street NE, Suite 700
Atlanta, GA 30309
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to