view include/rtp_alloc.h @ 205:0047c4c08d9e

mgw: accept the new TRAUlike RTP format in addition to standard, old BFI and zero-length payload formats
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 06 Apr 2023 19:50:09 -0800
parents b79d6334f543
children
line wrap: on
line source

/*
 * This header file defines the ad hoc control interface
 * to themwi-rtp-mgr over a dedicated local socket.
 */

struct rtp_alloc_req {
	uint32_t	transact_ref;
	uint32_t	ep_type;
};

struct rtp_alloc_resp {
	uint32_t	transact_ref;
	uint32_t	res;
	struct sockaddr_storage gsm_addr;
	struct sockaddr_storage pstn_addr;
};

#define	RTP_ALLOC_OK		0
#define	RTP_ALLOC_ERR_PARAM	1
#define	RTP_ALLOC_ERR_RSRC	2