<div dir="auto">Hi, <div dir="auto"><br></div><div dir="auto">I'll try to better clarify my scenario.</div><div dir="auto"><br></div><div dir="auto">I can't use probing in this situation, as my peer won't allow it.</div><div dir="auto"><br></div><div dir="auto">This is my scenario : </div><div dir="auto"><br></div><div dir="auto">SET: {</div><div dir="auto"> ID: 102</div><div dir="auto"> TARGETS: {</div><div dir="auto"> DEST: {</div><div dir="auto"> URI: sip:Peer_IP:5060</div><div dir="auto"> FLAGS: AX</div><div dir="auto"> PRIORITY: 0</div><div dir="auto"> ATTRS: {</div><div dir="auto"> BODY: duid=Peer_01;socket=HA_IP_1:5060</div><div dir="auto"> DUID: Peer_01</div><div dir="auto"> MAXLOAD: 0</div><div dir="auto"> WEIGHT: 0</div><div dir="auto"> RWEIGHT: 0</div><div dir="auto"> SOCKET: HA_IP_1:5060</div><div dir="auto"> SOCKNAME:</div><div dir="auto"> OBPROXY:</div><div dir="auto"> }</div><div dir="auto"> RUNTIME: {</div><div dir="auto"> DLGLOAD: 0</div><div dir="auto"> }</div><div dir="auto"> }</div><div dir="auto"> DEST: {</div><div dir="auto"> URI: sip:Peer_IP:5060</div><div dir="auto"> FLAGS: AX</div><div dir="auto"> PRIORITY: 0</div><div dir="auto"> ATTRS: {</div><div dir="auto"> BODY: duid=Peer_02;socket=HA_IP_2:5060</div><div dir="auto"> DUID: Peer_02</div><div dir="auto"> MAXLOAD: 0</div><div dir="auto"> WEIGHT: 0</div><div dir="auto"> RWEIGHT: 0</div><div dir="auto"> SOCKET: HA_IP_2:5060</div><div dir="auto"> SOCKNAME:</div><div dir="auto"> OBPROXY:</div><div dir="auto"> }</div><div dir="auto"> }</div><div dir="auto"> </div><div dir="auto">In this case, HA_IP_1 is on this machine and HA_IP_2 is on another machine. When dispatcher with loadbalance is called on this scenario, it fails when choosing Peer_02 as destination. </div><div dir="auto"><br></div><div dir="auto">What i propose is Dispatcher removing Peer_02 from the destination list as long as HA_IP_2 isn't present on that machine. Is this possible?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A segunda, 12/10/2020, 15:34, Duarte Rocha <<a href="mailto:duarterocha91@gmail.com">duarterocha91@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Greetings, <div dir="auto"><br></div><div dir="auto">I have two machines with Kamailio in a HA setup with replicated DB. For simplicity let's say each machine has one HA IP and that IP can jump to the other machine in case something happens (kamailio stopping, etc).</div><div dir="auto"><br></div><div dir="auto">I'm using Dispatcher with load balance configuration. I have Dispatcher configured so that each peer has one instance for socket with HA IP 1 and HA IP 2.</div><div dir="auto"><br></div><div dir="auto">In order for this to work correctly on the load balance scenario I must disable via RPC command the peer which has the socket that doesn't belong to the machine. I also must do it every time the IP jumps back and forth, which adds complexety to my system.</div><div dir="auto"><br></div><div dir="auto">Does Dispatcher has any sort of help on this? It could not include peers with sockets IPs that don't belong to the machine in the destination set, for example. Is this possible?</div><div dir="auto"><br></div><div dir="auto">I could also work with failover support but i would rather avoid having so many failovers.</div><div dir="auto"><br></div><div dir="auto">Best Regards,A</div></div>
</blockquote></div>