]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
only enable passthru_ptime_mismatch when set to a true value, not when it is set...
authorMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 20:12:10 +0000 (16:12 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 20:12:10 +0000 (16:12 -0400)
src/switch_channel.c

index d1b04d4bde310f62a492b49af302ec8370716c0f..f56783340021b2394c291c582a691a79c7673cba 100644 (file)
@@ -3376,7 +3376,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_mark_pre_answered(switch_
                switch_channel_api_on(channel, SWITCH_CHANNEL_API_ON_PRE_ANSWER_VARIABLE);
                switch_channel_api_on(channel, SWITCH_CHANNEL_API_ON_MEDIA_VARIABLE);
 
-               if ((var = switch_channel_get_variable(channel, SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE))) {
+               if ((var = switch_channel_get_variable(channel, SWITCH_PASSTHRU_PTIME_MISMATCH_VARIABLE)) && switch_true(var)) {
                        switch_channel_set_flag(channel, CF_PASSTHRU_PTIME_MISMATCH);
                }