<div dir="ltr"><div><div><div>Hi everyone, currently i am running 2 Asterisk Servers that share the same dialplan and sip users, also they connect through DUNDi. Right now i need that the users on certain network register to one of the 2 servers and in case it fails, then kamailio should tell the phone to log in to the backup server. After the main server for that location is restored the phones should connect again to the main server.<br>
<br></div><div>something like this:<br><br></div>Location A                                                 Location B<br><br></div>network: <a href="http://192.168.1.0/24">192.168.1.0/24</a>                             network: <a href="http://192.168.2.0/24">192.168.2.0/24</a><br>
</div>main asterisk server: 192.168.1.1               main asterisk server: 192.168.2.1<br><div>backup asterisk server: 192.168.2.1            backup asterisk server: 192.168.1.1<br><br><br></div><div>Unless there's a failover situation the phones on Location A (network: <a href="http://192.168.1.0/24">192.168.1.0/24</a>) should login to their main server, same with Location B , as soon the problem is fixed they should failback to their main server again, as i said both asterisk server share the same dialplan and sip-users.<br>
<br></div><div>I don't want to let kamailio handle the user registration, i just need it to tell the phones which asterisk server should they contact based on their IP and main/backup server status. I tried to do it using DNS-SRV instead of Kamalio, it worked, but the phones never failback, also, DNS-SRV doesn't tell what server should be used based on the network the request came from.<br>
<br></div><div>I've been trying to do this and really need help, any example would be appreciated, thanks in advance. Also i'd like to know if this is possible using H.323 protocol suit instead of SIP.<br></div></div>