From: Mike Jerris Date: Wed, 9 Nov 2016 20:46:16 +0000 (-0600) Subject: FS-9710: fix build in passthrough mode X-Git-Tag: v1.8.0~1111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ade33ae4727bad40386519a4105ae7c6f0a7e875;p=thirdparty%2Ffreeswitch.git FS-9710: fix build in passthrough mode --- diff --git a/src/mod/codecs/mod_amr/mod_amr.c b/src/mod/codecs/mod_amr/mod_amr.c index af716a08ac..c111d8d04d 100644 --- a/src/mod/codecs/mod_amr/mod_amr.c +++ b/src/mod/codecs/mod_amr/mod_amr.c @@ -494,6 +494,10 @@ static switch_status_t switch_amr_control(switch_codec_t *codec, switch_codec_control_type_t *rtype, void **ret_data) { +#ifdef AMR_PASSTHROUGH + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "This codec is only usable in passthrough mode!\n"); + return SWITCH_STATUS_FALSE; +#else struct amr_context *context = codec->private_info; switch(cmd) { @@ -546,6 +550,7 @@ static switch_status_t switch_amr_control(switch_codec_t *codec, } return SWITCH_STATUS_SUCCESS; +#endif } static char *generate_fmtp(switch_memory_pool_t *pool , int octet_align)