blob: abd264c65efbecee850a48444037b70c8b25c18a [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;
6 struct mgcp_endpoint *endp;
7 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;
23void mgcp_rtp_end_config(struct mgcp_endpoint *endp, int expect_ssrc_change,
24 struct mgcp_rtp_end *rtp);
25
26uint32_t mgcp_rtp_packet_duration(struct mgcp_endpoint *endp,
27 struct mgcp_rtp_end *rtp);