From 16abf085dc93648559502cad18330e48d92c61e4 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 12 Jan 2006 19:38:26 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@327 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_iaxchan/mod_iaxchan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_iaxchan/mod_iaxchan.c b/src/mod/endpoints/mod_iaxchan/mod_iaxchan.c index 59fe2f70bb..2bb51c0074 100644 --- a/src/mod/endpoints/mod_iaxchan/mod_iaxchan.c +++ b/src/mod/endpoints/mod_iaxchan/mod_iaxchan.c @@ -309,12 +309,13 @@ static switch_status iax_set_codec(struct private_object *tech_pvt, struct iax_s channel = switch_core_session_get_channel(tech_pvt->session); assert(channel != NULL); + if (*samprate) { unsigned short samples = iax_build_codec_rates(); unsigned short mixed = (*samprate & samples); srate = 8000; - + if (mixed & IAX_RATE_16KHZ) { srate = 16000; }