From: Anthony Minessale Date: Wed, 30 Sep 2009 17:53:09 +0000 (+0000) Subject: to be or not to be X-Git-Tag: v1.0.6~1767 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84090fe2f9c1197d7bbe333cb310f30c7c35fda3;p=thirdparty%2Ffreeswitch.git to be or not to be git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15024 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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; }