mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
40 lines
1004 B
C
40 lines
1004 B
C
#pragma once
|
|
|
|
#include <osmocom/core/utils.h>
|
|
#include <osmocom/mgcp/mgcp_common.h>
|
|
|
|
/* Internal structure while parsing a request */
|
|
struct mgcp_parse_data {
|
|
struct mgcp_config *cfg;
|
|
char *epname;
|
|
char *trans;
|
|
char *save;
|
|
};
|
|
|
|
/* Local connection options */
|
|
struct mgcp_lco {
|
|
char *string;
|
|
char *codec;
|
|
int pkt_period_min; /* time in ms */
|
|
int pkt_period_max; /* time in ms */
|
|
};
|
|
|
|
char *mgcp_debug_get_last_endpoint_name(void);
|
|
|
|
char *get_lco_identifier(const char *options);
|
|
int check_local_cx_options(void *ctx, const char *options);
|
|
|
|
struct mgcp_rtp_end;
|
|
struct mgcp_endpoint;
|
|
void mgcp_rtp_end_config(struct mgcp_endpoint *endp, int expect_ssrc_change,
|
|
struct mgcp_rtp_end *rtp);
|
|
|
|
uint32_t mgcp_rtp_packet_duration(const struct mgcp_endpoint *endp,
|
|
const struct mgcp_rtp_end *rtp);
|
|
|
|
extern const struct value_string mgcp_connection_mode_strs[];
|
|
static inline const char *mgcp_cmode_name(enum mgcp_connection_mode mode)
|
|
{
|
|
return get_value_string(mgcp_connection_mode_strs, mode);
|
|
}
|