[Freeswitch-users] Sofia fails to detect offline gateway

Steven Ayre steveayre at gmail.com
Thu Jan 13 18:00:34 MSK 2011


<gateway name="gw1">
  <param name="realm" value="a.b.c.d"/>
  <param name="username" value="nouser"/>
  <param name="password" value="nopass"/>
  <param name="register" value="false"/>
  <param name="caller-id-in-from" value="true"/>
  <param name="ping" value="5"/>
  <param name="ping-max" value="10"/>
  <param name="ping-min" value="3"/>
  <param name="retry-seconds" value="5"/>
  <param name="expire-seconds" value="60"/>
</gateway>

2011-01-13 14:59:08.762286 [WARNING] sofia.c:3962 Ping succeeded gw1 with
code 200 - count 3/1/10, state UP
2011-01-13 14:59:13.768365 [WARNING] sofia.c:3962 Ping succeeded gw1 with
code 200 - count 3/2/10, state UP
2011-01-13 14:59:18.771748 [WARNING] sofia.c:3962 Ping succeeded gw1 with
code 200 - count 3/3/10, state UP
2011-01-13 14:59:23.776471 [WARNING] sofia.c:3962 Ping succeeded gw1 with
code 200 - count 3/4/10, state UP
2011-01-13 14:59:28.781190 [WARNING] sofia.c:3962 Ping succeeded gw1 with
code 200 - count 3/5/10, state UP
2011-01-13 14:59:34.784801 [WARNING] sofia.c:3962 Ping succeeded gw1 with
code 200 - count 3/6/10, state UP
2011-01-13 14:59:39.791909 [WARNING] sofia.c:3962 Ping succeeded gw1 with
code 200 - count 3/7/10, state UP
2011-01-13 14:59:44.835272 [WARNING] sofia.c:3962 Ping succeeded gw1 with
code 200 - count 3/8/10, state UP
2011-01-13 14:59:49.838109 [WARNING] sofia.c:3962 Ping succeeded gw1 with
code 200 - count 3/9/10, state UP
2011-01-13 14:59:55.840360 [WARNING] sofia.c:3962 Ping succeeded gw1 with
code 200 - count 3/10/10, state UP


On 13 January 2011 14:57, Steven Ayre <steveayre at gmail.com> wrote:

> Done some testing with ping-max=10 and ping-min=3, and the gateway was
> marked as UP on the first successful ping.
>
> -Steve
>
>
>
>
> On 13 January 2011 14:47, David Ponzone <david.ponzone at ipeva.fr> wrote:
>
>> Min number of positive pings before marking the gw up, perhaps ?
>>
>>  David Ponzone  Direction Technique
>> email: david.ponzone at ipeva.fr
>> tel:      01 74 03 18 97
>> gsm:   06 66 98 76 34
>>
>> Service Client IPeva
>> tel:      0811 46 26 26
>> www.ipeva.fr  -   www.ipeva-studio.com
>>
>> *Ce message et toutes les pièces jointes sont confidentiels et établis à
>> l'intention exclusive de ses destinataires. Toute utilisation ou diffusion
>> non autorisée est interdite. Tout message électronique est susceptible
>> d'altération. **IPeva** décline toute responsabilité au titre de ce
>> message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas
>> destinataire de ce message, merci de le détruire immédiatement et d'avertir
>> l'expéditeur.*
>> *
>> *
>>
>>
>>
>> Le 13/01/2011 à 15:06, Steven Ayre a écrit :
>>
>> Ok, I've figured it out. It turns out the problem was
>>   <param name="ping-min" value="1"/>
>>
>> This was stopping the ping count dropping below 1, so it never reached 0
>> so never marked the gateway as down.
>>
>> ping-min and ping-max aren't very well documented on the wiki. I can see
>> what ping-max is for (determines the number of failed pings before the
>> gateway is marked as down, so it doesn't matter is an occasional request
>> fails), but what's the purpose of ping-min?
>>
>> -Steve
>>
>>
>>
>> On 11 January 2011 19:28, DJB International <djbinter at gmail.com> wrote:
>>
>>> I guess you probably have to open a JIRA on this issue.
>>>
>>> -djbinter
>>>
>>>
>>> On Tue, Jan 11, 2011 at 11:14 AM, Steven Ayre <steveayre at gmail.com>wrote:
>>>
>>>> 'sofia status' shows NOREG
>>>>
>>>> 'sofia status gateway gw3' shows UP if it's already down when FS starts
>>>>
>>>> 'sofia status gateway gw3' shows UP (ping) if it's up for a while and
>>>> then disappears
>>>>
>>>> Regards,
>>>> -Steve
>>>>
>>>>
>>>>
>>>>
>>>> On 11 January 2011 18:58, DJB International <djbinter at gmail.com> wrote:
>>>>
>>>>> Steve,
>>>>>
>>>>> I am just curious.  If you issue "sofia status gateway gw3" or "sofia
>>>>> status gateway gw4", do you see the Status as UP or DOWN.
>>>>>
>>>>> I would have thought that the State should be either NOREG or REG, and
>>>>> Status should be either UP or DOWN, but somehow the log displayed as state.
>>>>>
>>>>> Thanks,
>>>>> -djbinter
>>>>>
>>>>>
>>>>> On Tue, Jan 11, 2011 at 6:37 AM, Steven Ayre <steveayre at gmail.com>wrote:
>>>>>
>>>>>> freeswitch at internal> version
>>>>>> FreeSWITCH Version 1.0.head (git-a8b2840 2011-01-07 17-53-09 -0600)
>>>>>>
>>>>>> -Steve
>>>>>>
>>>>>>
>>>>>> On 11 January 2011 14:34, Brian West <brian at freeswitch.org> wrote:
>>>>>> > what version of FS are you running?
>>>>>> >
>>>>>> > /b
>>>>>> >
>>>>>> > On Jan 11, 2011, at 3:51 AM, Steven Ayre wrote:
>>>>>> >
>>>>>> >>
>>>>>> >> Is there a mistake in my configuration?
>>>>>> >>
>>>>>> >> -Steve
>>>>>> >
>>>>>> >
>>>>>> > _______________________________________________
>>>>>> > 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
>>>
>>>
>> _______________________________________________
>> 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/20110113/8fb116fa/attachment-0001.html 


More information about the FreeSWITCH-users mailing list