From: Michael Jerris Date: Mon, 11 Aug 2008 18:28:01 +0000 (+0000) Subject: mod_sofia Gateway Ping needs to look for return code 501 (SFSIP-78) X-Git-Tag: v1.0.2~1492 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bf16513885b82a90d6dddb646d8584c341c7b69;p=thirdparty%2Ffreeswitch.git mod_sofia Gateway Ping needs to look for return code 501 (SFSIP-78) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9243 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 74ebc1e208..fc94fa4008 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1929,7 +1929,7 @@ static void sofia_handle_sip_r_options(switch_core_session_t *session, int statu } if (gateway) { - if (status == 200 || status == 404) { + if (status == 200 || status == 404 || status == 501) { if (gateway->state == REG_STATE_FAILED) { gateway->state = REG_STATE_UNREGED; gateway->retry = 0;