make anything that remotely resembles a reply to options count as successful
--- 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;
}