blob: 97650e40d7b77a69fb980868ac8c2cbc9592c8c6 [file] [log] [blame]
Philipp Maierbc0346e2018-06-07 09:52:16 +02001#pragma once
2
Philipp Maier993ea6b2020-08-04 18:26:50 +02003#define DEFAULT_RTP_AUDIO_FRAME_DUR_NUM 20
4#define DEFAULT_RTP_AUDIO_FRAME_DUR_DEN 1000
5#define DEFAULT_RTP_AUDIO_PACKET_DURATION_MS 20
6#define DEFAULT_RTP_AUDIO_DEFAULT_RATE 8000
7#define DEFAULT_RTP_AUDIO_DEFAULT_CHANNELS 1
8
9#define PTYPE_UNDEFINED (-1)
10
11struct mgcp_conn_rtp;
12
Philipp Maierbc0346e2018-06-07 09:52:16 +020013void mgcp_codec_summary(struct mgcp_conn_rtp *conn);
14void mgcp_codec_reset_all(struct mgcp_conn_rtp *conn);
Neels Hofmeyr740af6e2019-08-08 21:57:18 +020015int mgcp_codec_add(struct mgcp_conn_rtp *conn, int payload_type, const char *audio_name, const struct mgcp_codec_param *param);
Philipp Maierbc0346e2018-06-07 09:52:16 +020016int mgcp_codec_decide(struct mgcp_conn_rtp *conn);
Philipp Maier6931f9a2018-07-26 09:29:31 +020017int mgcp_codec_pt_translate(struct mgcp_conn_rtp *conn_src, struct mgcp_conn_rtp *conn_dst, int payload_type);
Neels Hofmeyr51b42ff2020-06-19 01:34:42 +020018const struct mgcp_rtp_codec *mgcp_codec_pt_find_by_subtype_name(struct mgcp_conn_rtp *conn,
19 const char *subtype_name, unsigned int match_nr);