--
You received this message because you are subscribed to the Google Groups "Sipwise rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/1f0346e0-ac73-490f-bae5-7c5fe6fbea58n%40googlegroups.com.
I found the information here: https://rtpengine.readthedocs.io/en/latest/rtpengine.html#multiple-addresses-per-interface
It sounds like you want the same IPs on the main and backup nodes, but want the order the IPs offered to changed depending on which node is active?
If that's the case, the primary rtpengine would have:
interface = private/{{ rtp1private }};public/{{ rtp1public }};private/{{ rtp2private }};public/{{ rtp2public }}
and the backup rtpengine would have:
interface = private/{{ rtp2private }};public/{{ rtp2public }};private/{{ rtp1private }};public/{{ rtp1public }}
As per the link above, this will cause the ip rtp1private to be used by the primary node and rtp2private by the backup node.
You and the OP may be interested in the new "interface alias name" syntax that was added recently: https://rtpengine.readthedocs.io/en/latest/rtpengine.html#alias-names
(and I see that there was some formatting in the examples that must have gotten lost somewhere along the way, as the interfaces in the config need to be separated by semicolons, not spaces)
So to support such a setup more explicitly without having to rely on order in the config, you would put something like this on the first node:
interface = private1/{{ rtp1private }};public1/{{ rtp1public }};private2/{{ rtp2private }};public2/{{ rtp2public }};private=private1;public=public1
and on the second one:
interface = private1/{{ rtp1private }};public1/{{ rtp1public }};private2/{{ rtp2private }};public2/{{ rtp2public }};private=private2;public=public2
IOW the config is the same except for the alias names. In your signalling to rtpengine you would then only refer to the interfaces through their alias names `private` or `public`.
This is for setups where each node has all relevant IP addresses bound locally and the load balancer is only in charge or redirecting packet flows.
Other setups that involve a load balancer which changes NAT destination addresses would have each node list only its own addresses and not use alias names.
Cheers
--
You received this message because you are subscribed to the Google Groups "Sipwise rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/a84a62bc-5f07-4fae-92af-c442fc8c92de%40sipwise.com.
--
You received this message because you are subscribed to the Google Groups "Sipwise rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/c9fd4f87-07b2-4b65-a906-0aa9671640ca%40sipwise.com.