From: Alexandr Anikin Date: Wed, 15 Oct 2014 09:59:09 +0000 (+0000) Subject: chan_ooh323: fix rtptimeout general value checking X-Git-Tag: 13.0.0-beta3~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edf5af72e9e9272a2ab885c600995012cd5d8ff9;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 ........ Merged revisions 425548 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 425589 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@425590 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 34b0b633b9..6268ad05c4 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -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)