Hi Guys, A couple of our gateways have been shut down for hardware upgrades. However, the FreeSWITCH servers didn't spot the gateways go offline so they're still trying to send calls to them. I see this in the logs: 2011-01-11 09:35:05.396610 [WARNING] sofia.c:3981 Ping failed gw4 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:05.396610 [WARNING] sofia.c:3981 Ping failed gw3 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:13.408674 [WARNING] sofia.c:3981 Ping failed gw4 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:13.408674 [WARNING] sofia.c:3981 Ping failed gw3 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:21.420884 [WARNING] sofia.c:3981 Ping failed gw4 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:21.420884 [WARNING] sofia.c:3981 Ping failed gw3 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:29.458114 [WARNING] sofia.c:3981 Ping failed gw4 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:29.458114 [WARNING] sofia.c:3981 Ping failed gw3 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:37.472424 [WARNING] sofia.c:3981 Ping failed gw4 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:37.472424 [WARNING] sofia.c:3981 Ping failed gw3 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:46.475934 [WARNING] sofia.c:3981 Ping failed gw4 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:46.475934 [WARNING] sofia.c:3981 Ping failed gw3 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:55.489967 [WARNING] sofia.c:3981 Ping failed gw4 with code 503 - count 1/0/10, state UP 2011-01-11 09:35:55.489967 [WARNING] sofia.c:3981 Ping failed gw3 with code 503 - count 1/0/10, state UP ... you get the idea. I've done some testing and it happens both when FS is running and the gateway goes offline (code 408 then) and when FS starts up with the gateway already offline (code 503 as above). Both IP addresses are entirely offline. I had expected these would go to state DOWN but they haven't, I just get the above repeating. The gateway definitions look like this: <gateway name="gw3"> <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="1"/> <param name="retry-seconds" value="5"/> <param name="expire-seconds" value="60"/> </gateway> Is there a mistake in my configuration? -Steve
freeswitch@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@gmail.com> wrote:
freeswitch@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
'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@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@gmail.com> wrote:
freeswitch@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@gmail.com> wrote:
freeswitch@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@gmail.com>wrote:
freeswitch@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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Min number of positive pings before marking the gw up, perhaps ? David Ponzone Direction Technique email: david.ponzone@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@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@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@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@gmail.com> wrote: freeswitch@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@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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@ipeva.fr> wrote:
Min number of positive pings before marking the gw up, perhaps ?
David Ponzone Direction Technique email: david.ponzone@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@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@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@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@gmail.com>wrote:
freeswitch@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@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@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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
<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@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@ipeva.fr> wrote:
Min number of positive pings before marking the gw up, perhaps ?
David Ponzone Direction Technique email: david.ponzone@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@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@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@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@gmail.com>wrote:
freeswitch@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@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@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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
If anyone knows for sure the proper information on ping-min and ping-max please let me know and I will make sure that they get documented on the wiki. Thanks, MC On Thu, Jan 13, 2011 at 6:47 AM, David Ponzone <david.ponzone@ipeva.fr>wrote:
Min number of positive pings before marking the gw up, perhaps ?
Hi, looking to the ping-max and ping-min code into sofia.c there's some "counter" logic broken. I've submitted a patch here: http://jira.freeswitch.org/browse/FS-4985 which seems to work here. With the patch applied, ping-min means "how many successful pings we must have before declaring a gw up". The interval between ping-min and ping-max is the "safe area" where a gw is marked as UP. so if we have, for example, min 3 and max 6, if the gw is up and we move counter between 3,4,5,6 the gw will be up. if from 6 we loose 4 (so counter == 2) pings in a row, the gw will be declared down. please note that on sofia startup the gw is always started as UP, so it will be up even if ping-min is > 1 . the "right" way starts when the gw goes down. perhaps if a gw is configured as "pinged" is reasonable to start it as down, but this is a different patch :) regards, matteo
participants (6)
-
Brian West
-
David Ponzone
-
DJB International
-
Matteo
-
Michael Collins
-
Steven Ayre