&quot;sofia status&quot; will show you which profiles &amp; gateways are defined.<br><br>Are there any errors in FreeSWITCH&#39;s logfile when the XML is loaded? Perhaps there&#39;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&#39;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">&lt;<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>&gt;</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&#39;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&#39;t seem to load it as i&#39;m getting &quot;invalid gateway&quot; 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>
&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>
     &lt;configuration name=&quot;sofia.conf&quot; description=&quot;Gateways configuration&quot;&gt;<br>
<br>
          &lt;profile name=&quot;external&quot;&gt;<br>
                 &lt;!--<br>
<a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files" target="_blank">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a> --&gt;<br>
                 &lt;!-- This profile is only for outbound registrations<br>
to providers --&gt;<br>
                 &lt;gateways&gt;<br>
<br>
                    &lt;gateway name=&quot;gw_1&quot;&gt;<br>
                         &lt;param name=&quot;realm&quot; value=&quot;<a href="http://1.2.3.4:5060" target="_blank">1.2.3.4:5060</a>&quot;/&gt;<br>
                         &lt;param name=&quot;username&quot; value=&quot;foo&quot;/&gt;<br>
                         &lt;param name=&quot;password&quot; value=&quot;1234&quot;/&gt;<br>
                         &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>
                         &lt;param name=&quot;retry-seconds&quot; value=&quot;30&quot;/&gt;<br>
                    &lt;/gateway&gt;<br>
<br>
                    &lt;gateway name=&quot;gw_2&quot;&gt;<br>
                         &lt;param name=&quot;realm&quot; value=&quot;<a href="http://3.4.5.6:5060" target="_blank">3.4.5.6:5060</a>&quot;/&gt;<br>
                         &lt;param name=&quot;username&quot; value=&quot;foo&quot;/&gt;<br>
                         &lt;param name=&quot;password&quot; value=&quot;pass&quot;/&gt;<br>
                         &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>
                         &lt;param name=&quot;retry-seconds&quot; value=&quot;30&quot;/&gt;<br>
                    &lt;/gateway&gt;<br>
<br>
                 &lt;/gateways&gt;<br>
<br>
          &lt;/profile&gt;<br>
<br>
     &lt;/configuration&gt;<br>
&lt;/document&gt;<br>
<br>
<br>
and i get:<br>
<br>
<br>
freeswitch@internal&gt; 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>