CodecInfoVector2
This commit is contained in:
parent
e1ce525c34
commit
23ab3a990c
|
@ -185,10 +185,10 @@ void Client::init_pj_endpoint(Settings &settings, LogWriter *sip_log_writer) {
|
||||||
// and TG audio port clock rate so we MUST force
|
// and TG audio port clock rate so we MUST force
|
||||||
// using 48kHz codecs for all SIP calls
|
// using 48kHz codecs for all SIP calls
|
||||||
std::string codecId = settings.raw_pcm() ? "L16/48000/1" : "opus/48000/2";
|
std::string codecId = settings.raw_pcm() ? "L16/48000/1" : "opus/48000/2";
|
||||||
CodecInfoVector codecVector = ep.codecEnum();
|
CodecInfoVector2 codecVector = ep.codecEnum2();
|
||||||
|
|
||||||
for (auto const &value : codecVector) {
|
for (auto const &value : codecVector) {
|
||||||
ep.codecSetPriority(value->codecId, (pj_uint8_t) (value->codecId == codecId ? 255 : 0));
|
ep.codecSetPriority(value.codecId, (pj_uint8_t) (value.codecId == codecId ? 255 : 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
TransportConfig t_cfg;
|
TransportConfig t_cfg;
|
||||||
|
|
Loading…
Reference in New Issue