Revision
14242
Author
anthm
Date
2009-07-14 09:36:59 -0500 (Tue, 14 Jul 2009)

Log Message

make anything that remotely resembles a reply to options count as successful

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (14241 => 14242)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-07-14 14:22:32 UTC (rev 14241)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-07-14 14:36:59 UTC (rev 14242)
@@ -2838,7 +2838,7 @@
 	}
 
 	if (gateway) {
-		if (status == 200 || status == 404 || status == 501) {
+		if (status >= 200 && status < 600) {
 			if (gateway->state == REG_STATE_FAILED) {
 				gateway->state = REG_STATE_UNREGED;
 			}