]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add record_min_sec chan var
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 29 Oct 2009 15:30:07 +0000 (15:30 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 29 Oct 2009 15:30:07 +0000 (15:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15272 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_async.c

index 0ecfbd4ca0807f8f546c22f63ae8620250e86ca0..6a5698457e24822978ff3f5817aef11da409ef0c 100644 (file)
@@ -1018,7 +1018,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t
        
        if ((p = switch_channel_get_variable(channel, "RECORD_MIN_SEC"))) {
                int tmp = atoi(p);
-               if (tmp > 0) {
+               if (tmp >= 0) {
                        rh->min_sec = tmp;
                }
        }