diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index dc4e5af2f8..77dcdd253e 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -682,7 +682,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_answer(switch_core_session_t if (!ringback.asis) { - if (!(pass = (uint8_t) switch_test_flag(read_codec, SWITCH_CODEC_FLAG_PASSTHROUGH))) { + if ((pass = (uint8_t) switch_test_flag(read_codec, SWITCH_CODEC_FLAG_PASSTHROUGH))) { goto no_ringback; } @@ -1748,7 +1748,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess } if (!ringback.asis) { - if (!(pass = (uint8_t) switch_test_flag(read_codec, SWITCH_CODEC_FLAG_PASSTHROUGH))) { + if ((pass = (uint8_t) switch_test_flag(read_codec, SWITCH_CODEC_FLAG_PASSTHROUGH))) { ringback_data = NULL; goto no_ringback; }