<div dir="ltr"><div><span style="font-size:12.8000001907349px">Hi,</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> </span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Now, I have a freeswitch server and xml_curl are working correctly. I would like add a second freeswitch server but this second freeswitch (FS) should make the queries to the DB which are linked with the first freeswitch. How can I configure both FS for making the queries to the same DB or I have to configure DB for multiple domanins? </span><br></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><div style="font-size:12.8000001907349px">FS1 -&gt; 192.168.15.1</div><div style="font-size:12.8000001907349px">FS2 -&gt; 192.168.15.2</div><div style="font-size:12.8000001907349px">BD xml_curl -&gt; 192.168.15.3</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">extension en xml_curl :</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div style="color:rgb(0,0,0);font-family:monospace;font-size:13px">&lt;document type=&quot;freeswitch/xml&quot;&gt;</div><div style="margin-left:1em;color:rgb(0,0,0);font-family:monospace;font-size:13px"><div><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;section name=&quot;directory&quot; description=&quot;FreeSWITCH Directory&quot;&gt;</div><div style="margin-left:1em"><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;domain name=&quot;192.168.15.1&quot;&gt;</div><div style="margin-left:1em"><div><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;params&gt;</div><div style="margin-left:1em"><div>&lt;param name=&quot;default_gateway&quot; value=&quot;errors&quot;/&gt;</div><div>&lt;param name=&quot;dial-string&quot; value=&quot;{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}&quot;/&gt;</div></div><div>&lt;/params&gt;</div></div><div>&lt;variables/&gt;</div><div><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;groups&gt;</div><div style="margin-left:1em"><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;group name=&quot;default&quot;&gt;</div><div style="margin-left:1em"><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;users&gt;</div><div style="margin-left:1em"><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;user id=&quot;<span style="white-space:pre-wrap">12345678ip</span>&quot; cacheable=&quot;0&quot; mailbox=&quot;<span style="white-space:pre-wrap">12345678ip</span>&quot;&gt;</div><div style="margin-left:1em"><div><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;params&gt;</div><div style="margin-left:1em"><div>&lt;param name=&quot;password&quot; value=&quot;6389&quot;/&gt;</div><div>&lt;param name=&quot;vm-password&quot; value=&quot;<span style="white-space:pre-wrap">12345678ip</span>&quot;/&gt;</div><div>&lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;</div></div><div>&lt;/params&gt;</div></div><div><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;variables&gt;</div><div style="margin-left:1em"><div>&lt;variable name=&quot;accountcode&quot; value=&quot;<span style="white-space:pre-wrap">12345678ip</span>&quot;/&gt;</div><div>&lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;</div><div>&lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Extension<span style="white-space:pre-wrap">12345678ip</span>&quot;/&gt;</div><div>&lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;<span style="white-space:pre-wrap">12345678ip</span>&quot;/&gt;</div></div><div>&lt;/variables&gt;</div></div><div><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;gateways&gt;</div><div style="margin-left:1em"><div><span style="display:inline-block;width:10px;vertical-align:bottom;min-height:10px;background-repeat:no-repeat"></span>&lt;gateway name=&quot;<span style="white-space:pre-wrap">12345678ip</span>&quot;&gt;</div><div style="margin-left:1em"><div>&lt;param name=&quot;username&quot; value=&quot;<span style="white-space:pre-wrap">12345678ip</span>&quot;/&gt;</div><div>&lt;param name=&quot;from-user&quot; value=&quot;<span style="white-space:pre-wrap">12345678ip</span>&quot;/&gt;</div><div>&lt;param name=&quot;from-domain&quot; value=&quot;empresa1&quot;/&gt;</div><div>&lt;param name=&quot;password&quot; value=&quot;6389&quot;/&gt;</div><div>&lt;param name=&quot;extension-in-contact&quot; value=&quot;true&quot;/&gt;</div><div>&lt;param name=&quot;proxy&quot; value=&quot;0.0.0.0&quot;/&gt;</div><div>&lt;param name=&quot;register-proxy&quot; value=&quot;0.0.0.0&quot;/&gt;</div><div>&lt;param name=&quot;register-transport&quot; value=&quot;udp&quot;/&gt;</div><div>&lt;param name=&quot;caller-id-in-from&quot; value=&quot;true&quot;/&gt;</div></div><div>&lt;/gateway&gt;</div></div><div>&lt;/gateways&gt;</div></div></div><div>&lt;/user&gt;</div></div><div>&lt;/users&gt;</div></div><div>&lt;/group&gt;</div></div><div>&lt;/groups&gt;</div></div></div><div>&lt;/domain&gt;</div></div><div>&lt;/section&gt;</div></div><div><span style="white-space:pre-wrap">&lt;!--  User is 12345678ip  --&gt;</span></div><div><span style="white-space:pre-wrap">&lt;!--  user id is: 1  --&gt;</span></div><div><span style="white-space:pre-wrap">&lt;!--  Total # of Queries Run: 16  --&gt;</span></div><div><span style="white-space:pre-wrap">&lt;!--  Estimated Execution Time Is: 0.0039031505584717  --&gt;</span></div></div><div style="color:rgb(0,0,0);font-family:monospace;font-size:13px">&lt;/document&gt;</div></div></div>
</div>