From: Alexandr Anikin Date: Wed, 15 Oct 2014 09:02:50 +0000 (+0000) Subject: chan_ooh323: fix rtptimeout general value checking X-Git-Tag: 11.14.0-rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d076a8bd812d84aff44462f3e5ced6a6c2602cd7;p=thirdparty%2Fasterisk.git chan_ooh323: fix rtptimeout general value checking correct condition to check rtptimeout in [general] config section ASTERISK-24393 #close Reported by: Dmitry Melekhov Tested by: Dmitry Melekhov Patches: ASTERISK-24393.patch ........ Merged revisions 425547 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@425548 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index e34e8352cb..90cb9098bf 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -2968,7 +2968,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)