FreeCalypso > hg > themwi-rtp-mgr
view include/rtp_alloc_if.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 | 764bbf72392f |
children |
line wrap: on
line source
/* * This header file defines the ad hoc control interface * to themwi-rtp-mgr over a dedicated local socket. */ #pragma once #include <stdint.h> #include <sys/socket.h> struct rtp_alloc_req { uint32_t transact_ref; uint32_t ep_type; }; #define RTP_ALLOC_DO_GSM1 1 #define RTP_ALLOC_DO_PSTN 2 #define RTP_ALLOC_DO_GSM2 4 #define RTP_ALLOC_TYPE_GSM RTP_ALLOC_DO_GSM1 #define RTP_ALLOC_TYPE_PSTN RTP_ALLOC_DO_PSTN #define RTP_ALLOC_TYPE_GSM2PSTN (RTP_ALLOC_DO_GSM1 | RTP_ALLOC_DO_PSTN) #define RTP_ALLOC_TYPE_GSM2GSM (RTP_ALLOC_DO_GSM1 | RTP_ALLOC_DO_GSM2) struct rtp_alloc_resp { uint32_t transact_ref; uint32_t res; struct sockaddr_storage gsm_addr; struct sockaddr_storage pstn_addr; /* also used for 2nd GSM */ }; #define RTP_ALLOC_OK 0 #define RTP_ALLOC_ERR_PARAM 1 #define RTP_ALLOC_ERR_RSRC 2