blob: df134abe1fc991b46364a7d12a9b44d951e813ab [file] [log] [blame]
Philipp Maier993ea6b2020-08-04 18:26:50 +02001#pragma once
2
3/* Internal structure while parsing a request */
4struct mgcp_parse_data {
5 struct mgcp_config *cfg;
Philipp Maier8dc35972021-07-14 11:20:16 +02006 char *epname;
Philipp Maier993ea6b2020-08-04 18:26:50 +02007 char *trans;
8 char *save;
9};
10
11/* Local connection options */
12struct 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 Maier39889e42021-08-04 17:42:57 +020019char *mgcp_debug_get_last_endpoint_name(void);
20
Philipp Maier993ea6b2020-08-04 18:26:50 +020021char *get_lco_identifier(const char *options);
22int check_local_cx_options(void *ctx, const char *options);
23
24struct mgcp_rtp_end;
Philipp Maierd02716d2021-07-14 11:48:13 +020025struct mgcp_endpoint;
Philipp Maier993ea6b2020-08-04 18:26:50 +020026void mgcp_rtp_end_config(struct mgcp_endpoint *endp, int expect_ssrc_change,
27 struct mgcp_rtp_end *rtp);
28
Pau Espin Pedrol8358c4b2021-07-07 12:41:38 +020029uint32_t mgcp_rtp_packet_duration(const struct mgcp_endpoint *endp,
30 const struct mgcp_rtp_end *rtp);