FreeCalypso > hg > themwi-system-sw
view include/tmgw_const.h @ 199:e6c7ced3c031
mgw: accept zero-length RTP payload as BFI
Mainline OsmoBTS now has an option (rtp continuous-streaming)
that causes it to emit an RTP packet every 20 ms without gaps,
sending a BFI marker in the form of zero-length RTP payload
when it has nothing else to send. These codec-independent
BFI markers don't indicate TAF, but this provision is a good
start. Accept this BFI packet format in themwi-mgw.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 29 Mar 2023 20:23:43 -0800 |
parents | f4ed6042e16c |
children |
line wrap: on
line source
/* * This header file defines some constants for themwi-mgw, * used in the implementation, in the control interface and * throughout the architecture. * * Some of these constants (specifically those dealing with * RTP endpoint types) are now also used in themwi-rtp-mgr * and other RTP-touching tools beyond the original themwi-mgw * design. */ #define TMGW_EP_TYPE_GSM_ONLY 1 #define TMGW_EP_TYPE_PSTN_ONLY 2 #define TMGW_EP_TYPE_GATEWAY 3 /* backward compatibility, from themwi-mgw perspective */ #define TMGW_EP_TYPE_DUMMY_GSM TMGW_EP_TYPE_GSM_ONLY #define TMGW_EP_TYPE_DUMMY_PSTN TMGW_EP_TYPE_PSTN_ONLY #define TMGW_EP_HAS_GSM_SOCK 1 #define TMGW_EP_HAS_PSTN_SOCK 2 #define TMGW_FWD_MODE_INACTIVE 0 #define TMGW_FWD_MODE_RECVONLY 1 #define TMGW_FWD_MODE_SENDONLY 2 #define TMGW_FWD_MODE_SENDRECV 3 #define TMGW_FWD_ENABLE_PSTN2GSM 1 #define TMGW_FWD_ENABLE_GSM2PSTN 2 #define GSM_TCHF_FRAME 0x0300 #define GSM_TCHF_FRAME_EFR 0x0301 #define GSM_TCHH_FRAME 0x0302 #define GSM_TCH_FRAME_AMR 0x0303 #define PSTN_CODEC_PCMU 0 #define PSTN_CODEC_PCMA 8