[Freeswitch-users] Keep alive ping for non registered endpoints
covici at ccs.covici.com
covici at ccs.covici.com
Tue Dec 22 23:51:07 MSK 2015
OK, maybe I will see if such a thing works. Thanks.
Bote Man <bote_radio at botecomm.com> wrote:
> ping-max is parsed along with a bunch of other variables(?) around line 3521
> of sofia.c
>
> NOTE: this is not mod_sofia.c just regular, plain old sofia.c
>
> https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/end
> points/mod_sofia/sofia.c#3521
>
> My best guess (which is worth exactly what you paid for it) from looking at
> the source code is that these are set in the gateway or sip_profile
> definitions.
>
> if ((x_params = switch_xml_child(gateway_tag,
> "params"))) {
> param = switch_xml_child(x_params, "param");
> } else {
> param = switch_xml_child(gateway_tag,
> "param");
> }
>
> And then it parses such notables as realm, username, auth-username,
> ping-max, et al.
>
> Bote
>
>
> > -----Original Message-----
> > From: covici at ccs.covici.com
> > Sent: Tuesday, 22 December, 2015 04:15
> > Subject: Re: [Freeswitch-users] Keep alive ping for non registered
> endpoints
> >
> > I have never seen those settings, where wouldIput those? With the
> > default, once a gateway is down, it never seems to come back up, at least
> > this is what happened to me -- I eventually got rid of the options ping
> > altogether and never had a problem since.
> >
> > Steven Ayre <steveayre at gmail.com> wrote:
> >
> > > What ping-min and ping-max settings are you using? It keeps a counter
> > > representing the number of successful and failed pings. If it drops too
> low
> > > the gateway is marked as down and if it's high it's marked as back up.
> As a
> > > result it can handle the occasional dropped ping as long as it's not
> > > several in a row. ping-min=3 and ping-max=5 seem to work well.
> > >
> > > On 22 December 2015 at 07:02, <covici at ccs.covici.com> wrote:
> > >
> > > > I have had a lot of problems with those options ping, if one should
> fail
> > > > it seems to have trouble recovering the gateway after that.
> > > >
> > > > Stanislav Sinyagin <ssinyagin at gmail.com> wrote:
> > > >
> > > > > Why don't you define them as gateways?
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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
>
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici at ccs.covici.com
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list