Philipp Maier | bc0346e | 2018-06-07 09:52:16 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Philipp Maier | 993ea6b | 2020-08-04 18:26:50 +0200 | [diff] [blame] | 3 | #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 | |
| 11 | struct mgcp_conn_rtp; |
| 12 | |
Philipp Maier | bc0346e | 2018-06-07 09:52:16 +0200 | [diff] [blame] | 13 | void mgcp_codec_summary(struct mgcp_conn_rtp *conn); |
| 14 | void mgcp_codec_reset_all(struct mgcp_conn_rtp *conn); |
Neels Hofmeyr | 740af6e | 2019-08-08 21:57:18 +0200 | [diff] [blame] | 15 | int mgcp_codec_add(struct mgcp_conn_rtp *conn, int payload_type, const char *audio_name, const struct mgcp_codec_param *param); |
Philipp Maier | bc0346e | 2018-06-07 09:52:16 +0200 | [diff] [blame] | 16 | int mgcp_codec_decide(struct mgcp_conn_rtp *conn); |
Philipp Maier | 6931f9a | 2018-07-26 09:29:31 +0200 | [diff] [blame] | 17 | int mgcp_codec_pt_translate(struct mgcp_conn_rtp *conn_src, struct mgcp_conn_rtp *conn_dst, int payload_type); |
Neels Hofmeyr | 51b42ff | 2020-06-19 01:34:42 +0200 | [diff] [blame] | 18 | const 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); |
Pau Espin Pedrol | 3babd1a | 2022-01-03 15:24:59 +0100 | [diff] [blame^] | 20 | bool mgcp_codec_amr_is_octet_aligned(const struct mgcp_rtp_codec *codec); |