[Freeswitch-users] xml_curl configuration for failover cluster

Peter P GMX Prometheus001 at gmx.net
Wed Oct 7 10:11:27 PDT 2009


Hello,

I read in the wiki that binding blocks are processed in sequential order
in a failover matter.

So I  created the following bindings for XML-Curl:
However grepping the network traffic I can see that Freewitch always
fetches both servers fo one binding. So there is no real failover.
How can I avoid that?

Best regards
Peter


<configuration name="xml_curl.conf" description="CURL XML Gateway">
  <bindings>

    <!-- Configuration -->
    <!-- FIRST Application server -->
    <binding name="configuration">
      <param name="gateway-url"
value="http://localhost/xml_curls/configuration" bindings="configuration"/>
    </binding>
    <!-- SECOND Application server -->
    <binding name="configuration_backup">
      <param name="gateway-url"
value="http://10.0.0.104/xml_curls/configuration" bindings="configuration"/>
    </binding>

    <!-- Directory -->
    <!-- FIRST Application server -->
    <binding name="directory">
      <param name="gateway-url"
value="http://localhost/xml_curls/directory" bindings="directory"/>
    </binding>
    <!-- SECOND Application server -->
    <binding name="directory_backup">
      <param name="gateway-url"
value="http://10.0.0.104/xml_curls/directory" bindings="directory"/>
    </binding>

    <!-- Dialplan -->
    <!-- FIRST Application server -->
    <binding name="dialplan">
      <param name="gateway-url"
value="http://localhost/xml_curls/dialplan" bindings="dialplan"/>
    </binding>
    <!-- SECOND Application server -->
    <binding name="dialpla_backup">
      <param name="gateway-url"
value="http://10.0.0.104/xml_curls/dialplan" bindings="dialplan"/>
    </binding>

  </bindings>
</configuration>




More information about the FreeSWITCH-users mailing list