"sofia status" will show you which profiles & gateways are defined.<br><br>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.<br>
<br>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?<br>
<br>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?<br>
<br>Regards,<br>-Steve<br><br><br><div class="gmail_quote">On 21 February 2011 14:47, David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello All,<br>
<br>
I'm trying to have my gateways defined dynamically with xml_curl.<br>
According to the logs, the xml is requested and relivered to fs but fs<br>
doesn't seem to load it as i'm getting "invalid gateway" when i try to<br>
use them.<br>
<br>
this is my <a href="http://curl-gateway/gateways.php" target="_blank">http://curl-gateway/gateways.php</a> file:<br>
<br>
<br>
<br>
<document type="freeswitch/xml"><br>
<configuration name="sofia.conf" description="Gateways configuration"><br>
<br>
<profile name="external"><br>
<!--<br>
<a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files" target="_blank">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a> --><br>
<!-- This profile is only for outbound registrations<br>
to providers --><br>
<gateways><br>
<br>
<gateway name="gw_1"><br>
<param name="realm" value="<a href="http://1.2.3.4:5060" target="_blank">1.2.3.4:5060</a>"/><br>
<param name="username" value="foo"/><br>
<param name="password" value="1234"/><br>
<param name="register" value="false"/><br>
<param name="retry-seconds" value="30"/><br>
</gateway><br>
<br>
<gateway name="gw_2"><br>
<param name="realm" value="<a href="http://3.4.5.6:5060" target="_blank">3.4.5.6:5060</a>"/><br>
<param name="username" value="foo"/><br>
<param name="password" value="pass"/><br>
<param name="register" value="false"/><br>
<param name="retry-seconds" value="30"/><br>
</gateway><br>
<br>
</gateways><br>
<br>
</profile><br>
<br>
</configuration><br>
</document><br>
<br>
<br>
and i get:<br>
<br>
<br>
freeswitch@internal> sofia xmlstatus gateway gw_1<br>
Invalid Gateway!<br>
<br>
<br>
Is my file correct?<br>
<br>
It is not possible to find xml_curl gateways samples anywhere.<br>
<br>
<br>
<br>
Thanks<br>
<br>
David<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>