[Freeswitch-users] XML_CURL & gateways
Steven Ayre
steveayre at gmail.com
Mon Feb 21 18:09:26 MSK 2011
"sofia status" will show you which profiles & gateways are defined.
Are there any errors in FreeSWITCH's logfile when the XML is loaded? Perhaps
there's an XML parsing error, or some other error which gets logged.
Gateways are only loaded when you load the configuration (when mod_sofia
loads, or on sofia profile name rescan). Existing gateways must be deleted
and then rescanned to pick up configuration changes. Did you do that after
making the changes?
The gateway XML looks ok and I can confirm you can serve the config via
mod_xml_curl (I do). Your profile looks incomplete though, for instance
there's no sip-ip to bind to. Did you remove the profile params when posting
to the list, or is that your entire profile?
Regards,
-Steve
On 21 February 2011 14:47, David Villasmil
<david.villasmil.work at gmail.com>wrote:
> 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
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110221/397f8973/attachment.html
More information about the FreeSWITCH-users
mailing list