Hello ... What you are trying todo ... Could only be done un two ways...<br><br>Way one : the easier and better... Lets kamailio do their work ... And put it un front of the asterisk servers<br><br>Way two: the hardest one<br>Correctly setup your DNS server. The setup you need for sending out different answers depending con the orig ip its calles 'split hirizont'.<br>Also you will need a good dns-srv Support on your IP phones ... And Support for failback setup ... Not all models Support that ... I know snom terminals Support that.<br><br>Forget about h323 ... Its a dead cat<br><br>Best regards<br>--<br>Raúl Alexis Betancor Santana<br>Dimensión Virtual S.L.<br><br>Rafael Carvallo <shaoranrch@gmail.com> wrote:<br><br><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>