[Freeswitch-users] XML_CURL & gateways

David Villasmil david.villasmil.work at gmail.com
Mon Feb 21 17:47:07 MSK 2011


Hello All,

I'm trying to have my gateways defined dynamically with xml_curl.
According to the logs, the xml is requested and relivered to fs but fs
doesn't seem to load it as i'm getting "invalid gateway" when i try to
use them.

this is my http://curl-gateway/gateways.php file:



<document type="freeswitch/xml">
     <configuration name="sofia.conf" description="Gateways configuration">

          <profile name="external">
                 <!--
http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->
                 <!-- This profile is only for outbound registrations
to providers -->
                 <gateways>

                    <gateway name="gw_1">
                         <param name="realm" value="1.2.3.4:5060"/>
                         <param name="username" value="foo"/>
                         <param name="password" value="1234"/>
                         <param name="register" value="false"/>
                         <param name="retry-seconds" value="30"/>
                    </gateway>

                    <gateway name="gw_2">
                         <param name="realm" value="3.4.5.6:5060"/>
                         <param name="username" value="foo"/>
                         <param name="password" value="pass"/>
                         <param name="register" value="false"/>
                         <param name="retry-seconds" value="30"/>
                    </gateway>

                 </gateways>

          </profile>

     </configuration>
</document>


and i get:


freeswitch at internal> sofia xmlstatus gateway gw_1
Invalid Gateway!


Is my file correct?

It is not possible to find xml_curl gateways samples anywhere.



Thanks

David



More information about the FreeSWITCH-users mailing list