forked from Mirrors/freeswitch
FS-9136: update other modules to match api change
This commit is contained in:
parent
4a536dd23c
commit
15d250ed7c
|
@ -3403,7 +3403,7 @@ static void parse_bri_pri_spans(switch_xml_t cfg, switch_xml_t spans)
|
|||
//switch_core_strdup(pool, val);
|
||||
const switch_codec_implementation_t *codec = NULL;
|
||||
int num_codecs;
|
||||
num_codecs = switch_loadable_module_get_codecs_sorted(&codec, 1, &val, 1);
|
||||
num_codecs = switch_loadable_module_get_codecs_sorted(&codec, NULL, 1, &val, 1);
|
||||
if (num_codecs != 1 || !codec) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
|
||||
"Failed finding codec %s for unrestricted digital calls\n", val);
|
||||
|
|
|
@ -945,7 +945,7 @@ static int get_codecs(struct private_object *tech_pvt)
|
|||
}
|
||||
|
||||
if (codec_string) {
|
||||
if ((tech_pvt->num_codecs = switch_loadable_module_get_codecs_sorted(tech_pvt->codecs,
|
||||
if ((tech_pvt->num_codecs = switch_loadable_module_get_codecs_sorted(tech_pvt->codecs, NULL,
|
||||
SWITCH_MAX_CODECS, codec_order_p, codec_order_last)) <= 0) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "NO codecs?\n");
|
||||
return 0;
|
||||
|
|
|
@ -730,7 +730,7 @@ void FSConnection::SetCodecs()
|
|||
{
|
||||
char *codec_order[SWITCH_MAX_CODECS];
|
||||
int codec_order_last = switch_separate_string((char *)codec_string.GetPointer(), ',', codec_order, SWITCH_MAX_CODECS);
|
||||
numCodecs = switch_loadable_module_get_codecs_sorted(codecs, SWITCH_MAX_CODECS, codec_order, codec_order_last);
|
||||
numCodecs = switch_loadable_module_get_codecs_sorted(codecs, NULL, SWITCH_MAX_CODECS, codec_order, codec_order_last);
|
||||
}
|
||||
|
||||
for (int i = 0; i < numCodecs; i++) {
|
||||
|
|
Loading…
Reference in New Issue