view include/rtp_alloc_simple.h @ 10:9499d41fc393 default tip

daemon: change config file name to themwi-rtp-mgr.cfg
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 27 May 2024 22:47:19 +0000
parents 191d58f5c24f
children
line wrap: on
line source

/*
 * This header file defines the library interface for "simple"
 * RTP endpoint allocation.
 */

#pragma once

#include <sys/socket.h>

struct rtp_alloc_simple {
	struct sockaddr_storage gsm_addr;
	int	gsm_rtp_fd;
	int	gsm_rtcp_fd;
	struct sockaddr_storage pstn_addr;	/* also used for 2nd GSM */
	int	pstn_rtp_fd;
	int	pstn_rtcp_fd;
};

int rtp_alloc_simple(int ep_type, struct rtp_alloc_simple *out);