git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@331 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
97f6080403
commit
5aaef9efdd
|
@ -323,7 +323,7 @@ static switch_status iax_set_codec(struct private_object *tech_pvt, struct iax_s
|
||||||
srate = 16000;
|
srate = 16000;
|
||||||
}
|
}
|
||||||
if (mixed & IAX_RATE_22KHZ) {
|
if (mixed & IAX_RATE_22KHZ) {
|
||||||
srate = 22000;
|
srate = 22050;
|
||||||
}
|
}
|
||||||
if (mixed & IAX_RATE_32KHZ) {
|
if (mixed & IAX_RATE_32KHZ) {
|
||||||
srate = 32000;
|
srate = 32000;
|
||||||
|
|
|
@ -731,6 +731,7 @@ static switch_status engage_device(struct private_object *tech_pvt)
|
||||||
return SWITCH_STATUS_FALSE;
|
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.rate = sample_rate;
|
||||||
tech_pvt->read_frame.codec = &tech_pvt->read_codec;
|
tech_pvt->read_frame.codec = &tech_pvt->read_codec;
|
||||||
switch_core_session_set_read_codec(tech_pvt->session, &tech_pvt->read_codec);
|
switch_core_session_set_read_codec(tech_pvt->session, &tech_pvt->read_codec);
|
||||||
|
|
Loading…
Reference in New Issue