blob: 7ab283de42dc5a05380495a9acb3b6462f3f2473 [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
19char *get_lco_identifier(const char *options);
20int check_local_cx_options(void *ctx, const char *options);
21
22struct mgcp_rtp_end;
Philipp Maierd02716d2021-07-14 11:48:13 +020023struct mgcp_endpoint;
Philipp Maier993ea6b2020-08-04 18:26:50 +020024void mgcp_rtp_end_config(struct mgcp_endpoint *endp, int expect_ssrc_change,
25 struct mgcp_rtp_end *rtp);
26
Pau Espin Pedrol8358c4b2021-07-07 12:41:38 +020027uint32_t mgcp_rtp_packet_duration(const struct mgcp_endpoint *endp,
28 const struct mgcp_rtp_end *rtp);