From: Anthony Minessale Date: Thu, 29 Oct 2009 15:30:07 +0000 (+0000) Subject: add record_min_sec chan var X-Git-Tag: v1.0.6~1570 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2ca02cabe61a8bb01ef40255f0a8a1086f42e1e;p=thirdparty%2Ffreeswitch.git add record_min_sec chan var git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15272 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 0ecfbd4ca0..6a5698457e 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -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; } }