chan_ooh323: fix rtptimeout general value checking
[asterisk/asterisk.git] / addons / chan_ooh323.c
index 1a9ab38..da63f03 100644 (file)
@@ -2988,7 +2988,7 @@ int reload_config(int reload)
                        gNat = ast_true(v->value);
                } else if (!strcasecmp(v->name, "rtptimeout")) {
                        gRTPTimeout = atoi(v->value);
-                       if (gRTPTimeout <= 0)
+                       if (gRTPTimeout < 0)
                                gRTPTimeout = 60;
                } else if (!strcasecmp(v->name, "tos")) {
                        if (sscanf(v->value, "%30i", &format) == 1)