[Freeswitch-users] Sofia fails to detect offline gateway

Steven Ayre steveayre at gmail.com
Tue Jan 11 12:51:37 MSK 2011


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



More information about the FreeSWITCH-users mailing list