Try (re)including the entire profile config. FS might be ignoring it because of the missing profile params.<br><br>-Steve<br><br><br><div class="gmail_quote">On 21 February 2011 15:56, 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;">Thanks Steven,<br>
<div class="im"><br>
> If you load the profile statically at start and rescan later from<br>
> mod_xml_curl, it should add any missing gateways at that time.<br>
><br>
<br>
</div>Doesn't do it though... that's why i was wondering if I had something<br>
wrong in my gateways section. I just posted my config in thi email<br>
thread before this email. Hope you see something wrong with it.<br>
<br>
Thanks<br>
<font color="#888888"><br>
David<br>
</font><div><div></div><div class="h5"><br>
On Mon, Feb 21, 2011 at 4:52 PM, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
> As Brian said, "sofia profile xxx killgw xxx" - you have to do them one at a<br>
> time.<br>
><br>
> If you load the profile statically at start and rescan later from<br>
> mod_xml_curl, it should add any missing gateways at that time.<br>
><br>
> -Steve<br>
><br>
><br>
> On 21 February 2011 15:40, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Thanks Steven,<br>
>><br>
>> The sofia profile loads statically. Only the gateway part is passed<br>
>> via curl, as I only want to load that dynamically.<br>
>><br>
>> I see no errors anywhere:<br>
>><br>
>> sofia profile external rescan<br>
>> +OK scan complete<br>
>><br>
>> freeswitch@internal><br>
>><br>
>> HOw do i remove all gateways before rescanning them?<br>
>><br>
>> Thanks<br>
>><br>
>> David<br>
>><br>
>> On Mon, Feb 21, 2011 at 4:09 PM, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
>> > "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?<br>
>> > Perhaps<br>
>> > 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<br>
>> > loads, or on sofia profile name rescan). Existing gateways must be<br>
>> > deleted<br>
>> > and then rescanned to pick up configuration changes. Did you do that<br>
>> > after<br>
>> > making the changes?<br>
>> ><br>
>> > The gateway XML looks ok and I can confirm you can serve the config via<br>
>> > mod_xml_curl (I do). Your profile looks incomplete though, for instance<br>
>> > there's no sip-ip to bind to. Did you remove the profile params when<br>
>> > posting<br>
>> > to the list, or is that your entire profile?<br>
>> ><br>
>> > Regards,<br>
>> > -Steve<br>
>> ><br>
>> ><br>
>> > On 21 February 2011 14:47, David Villasmil<br>
>> > <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> 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<br>
>> >> 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>
>> >><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>
>> ><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>
>> ><br>
>> ><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>
><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>
><br>
><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>
</div></div></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>