|
|
@ -3268,9 +3268,10 @@ int ast_rtp_engine_init(void)
|
|
|
|
set_next_mime_type(ast_format_siren7, 0, "audio", "G7221", 16000);
|
|
|
|
set_next_mime_type(ast_format_siren7, 0, "audio", "G7221", 16000);
|
|
|
|
set_next_mime_type(ast_format_siren14, 0, "audio", "G7221", 32000);
|
|
|
|
set_next_mime_type(ast_format_siren14, 0, "audio", "G7221", 32000);
|
|
|
|
set_next_mime_type(ast_format_g719, 0, "audio", "G719", 48000);
|
|
|
|
set_next_mime_type(ast_format_g719, 0, "audio", "G719", 48000);
|
|
|
|
/* Opus and VP8 */
|
|
|
|
/* Opus, VP8, and VP9 */
|
|
|
|
set_next_mime_type(ast_format_opus, 0, "audio", "opus", 48000);
|
|
|
|
set_next_mime_type(ast_format_opus, 0, "audio", "opus", 48000);
|
|
|
|
set_next_mime_type(ast_format_vp8, 0, "video", "VP8", 90000);
|
|
|
|
set_next_mime_type(ast_format_vp8, 0, "video", "VP8", 90000);
|
|
|
|
|
|
|
|
set_next_mime_type(ast_format_vp9, 0, "video", "VP9", 90000);
|
|
|
|
|
|
|
|
|
|
|
|
/* Define the static rtp payload mappings */
|
|
|
|
/* Define the static rtp payload mappings */
|
|
|
|
add_static_payload(0, ast_format_ulaw, 0);
|
|
|
|
add_static_payload(0, ast_format_ulaw, 0);
|
|
|
@ -3311,6 +3312,7 @@ int ast_rtp_engine_init(void)
|
|
|
|
add_static_payload(105, ast_format_t140_red, 0); /* Real time text chat (with redundancy encoding) */
|
|
|
|
add_static_payload(105, ast_format_t140_red, 0); /* Real time text chat (with redundancy encoding) */
|
|
|
|
add_static_payload(106, ast_format_t140, 0); /* Real time text chat */
|
|
|
|
add_static_payload(106, ast_format_t140, 0); /* Real time text chat */
|
|
|
|
add_static_payload(107, ast_format_opus, 0);
|
|
|
|
add_static_payload(107, ast_format_opus, 0);
|
|
|
|
|
|
|
|
add_static_payload(108, ast_format_vp9, 0);
|
|
|
|
|
|
|
|
|
|
|
|
add_static_payload(110, ast_format_speex, 0);
|
|
|
|
add_static_payload(110, ast_format_speex, 0);
|
|
|
|
add_static_payload(111, ast_format_g726, 0);
|
|
|
|
add_static_payload(111, ast_format_g726, 0);
|
|
|
@ -3413,4 +3415,4 @@ void ast_rtp_instance_set_stream_num(struct ast_rtp_instance *rtp, int stream_nu
|
|
|
|
rtp->engine->set_stream_num(rtp, stream_num);
|
|
|
|
rtp->engine->set_stream_num(rtp, stream_num);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ao2_unlock(rtp);
|
|
|
|
ao2_unlock(rtp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|