comparison include/rtp_alloc.h @ 0:9e7e9ba22e42

starting project with public header files
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 27 May 2024 09:10:27 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:9e7e9ba22e42
1 /*
2 * This header file defines the ad hoc control interface
3 * to themwi-rtp-mgr over a dedicated local socket.
4 */
5
6 #pragma once
7
8 struct rtp_alloc_req {
9 uint32_t transact_ref;
10 uint32_t ep_type;
11 };
12
13 #define RTP_ALLOC_DO_GSM1 1
14 #define RTP_ALLOC_DO_PSTN 2
15 #define RTP_ALLOC_DO_GSM2 4
16
17 #define RTP_ALLOC_TYPE_GSM RTP_ALLOC_DO_GSM1
18 #define RTP_ALLOC_TYPE_PSTN RTP_ALLOC_DO_PSTN
19 #define RTP_ALLOC_TYPE_GSM2PSTN (RTP_ALLOC_DO_GSM1 | RTP_ALLOC_DO_PSTN)
20 #define RTP_ALLOC_TYPE_GSM2GSM (RTP_ALLOC_DO_GSM1 | RTP_ALLOC_DO_GSM2)
21
22 struct rtp_alloc_resp {
23 uint32_t transact_ref;
24 uint32_t res;
25 struct sockaddr_storage gsm_addr;
26 struct sockaddr_storage pstn_addr; /* also used for 2nd GSM */
27 };
28
29 #define RTP_ALLOC_OK 0
30 #define RTP_ALLOC_ERR_PARAM 1
31 #define RTP_ALLOC_ERR_RSRC 2