From: Michael Jerris Date: Mon, 28 Apr 2014 20:12:10 +0000 (-0400) Subject: only enable passthru_ptime_mismatch when set to a true value, not when it is set... X-Git-Tag: v1.5.12~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9b5bfaa7f47ea810f1cf17c32eefbadfe858b9a;p=thirdparty%2Ffreeswitch.git only enable passthru_ptime_mismatch when set to a true value, not when it is set to any value --- diff --git a/src/switch_channel.c b/src/switch_channel.c index d1b04d4bde..f567833400 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -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); }