]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@331 d0543943-73ff-0310...
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 12 Jan 2006 21:01:57 +0000 (21:01 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 12 Jan 2006 21:01:57 +0000 (21:01 +0000)
src/mod/endpoints/mod_iaxchan/mod_iaxchan.c
src/mod/endpoints/mod_portaudio/mod_portaudio.c

index 2a19ae449931431d029b1d62b2d7f2d53f469360..cf16a964a0993605e4e2b1100bc106538827b764 100644 (file)
@@ -323,7 +323,7 @@ static switch_status iax_set_codec(struct private_object *tech_pvt, struct iax_s
                        srate = 16000;
                }
                if (mixed & IAX_RATE_22KHZ) {
-                       srate = 22000;
+                       srate = 22050;
                }
                if (mixed & IAX_RATE_32KHZ) {
                        srate = 32000;
index b716cca52fbf8fa32c6ef8d671b249281044c044..e5afeb4aa9a9a566239929a1d31ca49aa255b651 100644 (file)
@@ -731,6 +731,7 @@ static switch_status engage_device(struct private_object *tech_pvt)
                                return SWITCH_STATUS_FALSE;
                        }
                }
+               switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Loaded codec L16 %dhz %dms on %s\n", sample_rate, codec_ms, switch_channel_get_name(channel));
                tech_pvt->read_frame.rate = sample_rate;
                tech_pvt->read_frame.codec = &tech_pvt->read_codec;
                switch_core_session_set_read_codec(tech_pvt->session, &tech_pvt->read_codec);