Philipp Maier | 993ea6b | 2020-08-04 18:26:50 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | /* Internal structure while parsing a request */ |
| 4 | struct mgcp_parse_data { |
| 5 | struct mgcp_config *cfg; |
Philipp Maier | 8dc3597 | 2021-07-14 11:20:16 +0200 | [diff] [blame] | 6 | char *epname; |
Philipp Maier | 993ea6b | 2020-08-04 18:26:50 +0200 | [diff] [blame] | 7 | char *trans; |
| 8 | char *save; |
| 9 | }; |
| 10 | |
| 11 | /* Local connection options */ |
| 12 | struct mgcp_lco { |
| 13 | char *string; |
| 14 | char *codec; |
| 15 | int pkt_period_min; /* time in ms */ |
| 16 | int pkt_period_max; /* time in ms */ |
| 17 | }; |
| 18 | |
Philipp Maier | 39889e4 | 2021-08-04 17:42:57 +0200 | [diff] [blame] | 19 | char *mgcp_debug_get_last_endpoint_name(void); |
| 20 | |
Philipp Maier | 993ea6b | 2020-08-04 18:26:50 +0200 | [diff] [blame] | 21 | char *get_lco_identifier(const char *options); |
| 22 | int check_local_cx_options(void *ctx, const char *options); |
| 23 | |
| 24 | struct mgcp_rtp_end; |
Philipp Maier | d02716d | 2021-07-14 11:48:13 +0200 | [diff] [blame] | 25 | struct mgcp_endpoint; |
Philipp Maier | 993ea6b | 2020-08-04 18:26:50 +0200 | [diff] [blame] | 26 | void mgcp_rtp_end_config(struct mgcp_endpoint *endp, int expect_ssrc_change, |
| 27 | struct mgcp_rtp_end *rtp); |
| 28 | |
Pau Espin Pedrol | 8358c4b | 2021-07-07 12:41:38 +0200 | [diff] [blame] | 29 | uint32_t mgcp_rtp_packet_duration(const struct mgcp_endpoint *endp, |
| 30 | const struct mgcp_rtp_end *rtp); |