From: Anthony Minessale Date: Wed, 10 Mar 2010 23:53:12 +0000 (+0000) Subject: check for true X-Git-Tag: v1.0.6~183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0891fa211abae5be4cd2a8996efba3ea46ee459;p=thirdparty%2Ffreeswitch.git check for true git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16965 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 8451b6c51a..7c5d9bb93c 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -418,7 +418,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se if ((vval = switch_channel_get_variable(channel, "record_fill_cng"))) { - if (switch_true(vval)) { + if (!strcasecmp(vval, "true")) { fill_cng = 1400; } else { if ((fill_cng = atoi(vval)) < 0) { @@ -430,7 +430,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se if ((vval = switch_channel_get_variable(channel, "record_waste_resources"))) { - if (switch_true(vval)) { + if (!strcasecmp(vval, "true")) { waste_resources = 1400; } else { if ((waste_resources = atoi(vval)) < 0) {