diff include/rtp_alloc.h @ 179:b79d6334f543

themwi-rtp-mgr: RTP port allocation split out of themwi-mgw
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Mar 2023 20:19:14 -0800
parents include/tmgw_ctrl.h@f062c32a5116
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/rtp_alloc.h	Sat Mar 11 20:19:14 2023 -0800
@@ -0,0 +1,20 @@
+/*
+ * 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