[Freeswitch-users] Freeswitch + XML_CURL

Antony Aguirre Morales ing.antonyam at gmail.com
Tue Feb 24 21:38:12 MSK 2015


Hi,

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?

FS1 -> 192.168.15.1
FS2 -> 192.168.15.2
BD xml_curl -> 192.168.15.3

extension en xml_curl :

<document type="freeswitch/xml">
<section name="directory" description="FreeSWITCH Directory">
<domain name="192.168.15.1">
<params>
<param name="default_gateway" value="errors"/>
<param name="dial-string"
value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@
${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/>
</params>
<variables/>
<groups>
<group name="default">
<users>
<user id="12345678ip" cacheable="0" mailbox="12345678ip">
<params>
<param name="password" value="6389"/>
<param name="vm-password" value="12345678ip"/>
<param name="register" value="true"/>
</params>
<variables>
<variable name="accountcode" value="12345678ip"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension12345678ip"/>
<variable name="effective_caller_id_number" value="12345678ip"/>
</variables>
<gateways>
<gateway name="12345678ip">
<param name="username" value="12345678ip"/>
<param name="from-user" value="12345678ip"/>
<param name="from-domain" value="empresa1"/>
<param name="password" value="6389"/>
<param name="extension-in-contact" value="true"/>
<param name="proxy" value="0.0.0.0"/>
<param name="register-proxy" value="0.0.0.0"/>
<param name="register-transport" value="udp"/>
<param name="caller-id-in-from" value="true"/>
</gateway>
</gateways>
</user>
</users>
</group>
</groups>
</domain>
</section>
<!-- User is 12345678ip -->
<!-- user id is: 1 -->
<!-- Total # of Queries Run: 16 -->
<!-- Estimated Execution Time Is: 0.0039031505584717 -->
</document>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150224/e538c447/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list