diff options
author | Alexandr Anikin <may@telecom-service.ru> | 2014-10-15 09:59:09 +0000 |
---|---|---|
committer | Alexandr Anikin <may@telecom-service.ru> | 2014-10-15 09:59:09 +0000 |
commit | edf5af72e9e9272a2ab885c600995012cd5d8ff9 (patch) | |
tree | 8ef48b130e52011612f3f0700d3a39bf17a717ce /addons/chan_ooh323.c | |
parent | 54a5b8798f530915d6e6a52d71fe1ac3a2633c5a (diff) |
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
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r-- | addons/chan_ooh323.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 34b0b633b..6268ad05c 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) |