view mncc/struct.h @ 176:f5c4f9a764be

osmo-bts-rtp-bfi.patch: updated version This version of the osmo-bts patch sets the TAF bit correctly in generated RTP BFI packets, correctly generates RTP BFI in the case of FACCH stealing on sysmoBTS, and removes one EFR-specific bogon from sysmoBTS code.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 17 Feb 2023 18:27:03 -0800
parents ccc5ab6d8388
children
line wrap: on
line source

/*
 * This header file defines internal data structures
 * for ThemWi MNCC daemon, talking to OsmoMSC.
 */

#ifndef	__STRUCT_H
#define	__STRUCT_H

struct socket_conn {
	int	fd;
	unsigned ncalls;
	struct socket_conn *next;
};

/* GSM call leg on MNCC-MSC side, either MO or MT */
struct gsm_call {
	/* always present */
	uint32_t callref;
	/* only for internal switching */
	struct gsm_call *other_leg;
	/* only for external calls */
	struct socket_conn *socket;
	uint32_t socket_ref;
	/* linked list management */
	int gc_flag;
	struct gsm_call *next;
};

#endif	/* include guard */