[SR-Users] Public vs Internal IPs

Colin Morelli colin.morelli at gmail.com
Sun Jun 26 00:46:38 CEST 2016


Thanks for the quick reply!

Binding to two SIP ports isn't out of the question (though I'd like to
avoid it if possible).

However, with this approach, I assume somewhere I must have to instruct
Kamailio which outbound interface to use (i.e. tell it to use 5080 for
forwarded requests to internal hosts and 5060 for requests headed out?) How
else would it know to cross over the interfaces?

Best,
Colin

On Sat, Jun 25, 2016 at 6:43 PM Alex Balashov <abalashov at evaristesys.com>
wrote:

> Understood. I went through this a while back.
>
> As long as you're willing to bind to two different SIP ports (i.e.
> different SIP port on your internal signalling), this is the solution:
>
> listen=udp:private.ip:5060 advertise public.ip:5060
> listen=udp:private.ip:5080
>
> Combine with enable_double_rr, shake well, et voila! :-)
>
> -- Alex
>
> --
> Principal, Evariste Systems LLC (www.evaristesys.com)
>
> Sent from my Google Nexus.
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160625/82d3d378/attachment.html>


More information about the sr-users mailing list