mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-26 12:37:26 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@323 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
71b226bfec
commit
6f67a02da2
@ -310,10 +310,11 @@ static switch_status iax_set_codec(struct private_object *tech_pvt, struct iax_s
|
|||||||
assert(channel != NULL);
|
assert(channel != NULL);
|
||||||
|
|
||||||
if (*samprate) {
|
if (*samprate) {
|
||||||
srate = 8000;
|
|
||||||
unsigned short samples = iax_build_codec_rates();
|
unsigned short samples = iax_build_codec_rates();
|
||||||
unsigned short mixed = (*samprate & samples);
|
unsigned short mixed = (*samprate & samples);
|
||||||
|
|
||||||
|
srate = 8000;
|
||||||
|
|
||||||
if (mixed & IAX_RATE_16KHZ) {
|
if (mixed & IAX_RATE_16KHZ) {
|
||||||
srate = 16000;
|
srate = 16000;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user