<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>I'm not sure if this is the proper way to approach it but i can't figure out how to setup dundi.<br>what i did is, i try to determine which server a user is registered, by calling an agi to query&nbsp; the realtime db and capture the regserver of&nbsp; the user.<br><br>e.g.&nbsp; <br><br>exten =&gt; _1xx,1,AGI(getserver.php)<br>exten =&gt; _1xx,2,GotoIf($["${REGSERVER}" != "asterisk-1"]?102)<br>exten =&gt; _1xx,3,Dial(SIP/${EXTEN}|30|t)<br>exten =&gt; _1xx,102,Dial(SIP/${EXTEN}@${REGSERVER}|30|t)<br>exten =&gt; _1xx,103,Hangup<br><br>then i created peering between the two. so far it is working i can call extensions that are registered in whatever server. but what i'd like to know is, would there be a difference on performance on calls when querying a DB to get the regserver, or is it still adviseable to use dundi for peering.<br><br>also i setup DNS
 SRV for these servers, what if one server fails, should the user close their phone to re-register to the server that is alive, or will it automtically register to the other server if the other is unreachable? TIA<br><br>Regards<br>Ron<br><br></td></tr></table><br>