[Freeswitch-users] XML_CURL & gateways
Steven Ayre
steveayre at gmail.com
Mon Feb 21 19:07:45 MSK 2011
Try (re)including the entire profile config. FS might be ignoring it because
of the missing profile params.
-Steve
On 21 February 2011 15:56, David Villasmil
<david.villasmil.work at gmail.com>wrote:
> Thanks Steven,
>
> > If you load the profile statically at start and rescan later from
> > mod_xml_curl, it should add any missing gateways at that time.
> >
>
> Doesn't do it though... that's why i was wondering if I had something
> wrong in my gateways section. I just posted my config in thi email
> thread before this email. Hope you see something wrong with it.
>
> Thanks
>
> David
>
> On Mon, Feb 21, 2011 at 4:52 PM, Steven Ayre <steveayre at gmail.com> wrote:
> > As Brian said, "sofia profile xxx killgw xxx" - you have to do them one
> at a
> > time.
> >
> > If you load the profile statically at start and rescan later from
> > mod_xml_curl, it should add any missing gateways at that time.
> >
> > -Steve
> >
> >
> > On 21 February 2011 15:40, David Villasmil <
> david.villasmil.work at gmail.com>
> > wrote:
> >>
> >> Thanks Steven,
> >>
> >> The sofia profile loads statically. Only the gateway part is passed
> >> via curl, as I only want to load that dynamically.
> >>
> >> I see no errors anywhere:
> >>
> >> sofia profile external rescan
> >> +OK scan complete
> >>
> >> freeswitch at internal>
> >>
> >> HOw do i remove all gateways before rescanning them?
> >>
> >> Thanks
> >>
> >> David
> >>
> >> On Mon, Feb 21, 2011 at 4:09 PM, Steven Ayre <steveayre at gmail.com>
> wrote:
> >> > "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
> >> >
> >> >
> >> > _______________________________________________
> >> > 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
> >> >
> >> >
> >>
> >> _______________________________________________
> >> 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
> >
> >
> > _______________________________________________
> > 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
> >
> >
>
> _______________________________________________
> 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/4f30d218/attachment.html
More information about the FreeSWITCH-users
mailing list