]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
check for true
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 10 Mar 2010 23:53:12 +0000 (23:53 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 10 Mar 2010 23:53:12 +0000 (23:53 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16965 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_play_say.c

index 8451b6c51abc1aa11fea82be690049c0144d93be..7c5d9bb93cee0b5a0fadb3162e220dd8afeb7b96 100644 (file)
@@ -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) {