changeset 182:f4ed6042e16c

include/tmgw_const.h: expanded architectural point of view
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Mar 2023 21:44:40 -0800
parents 9ebd89257ae1
children 3962d9345a09
files include/tmgw_const.h
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/include/tmgw_const.h	Sat Mar 11 20:43:18 2023 -0800
+++ b/include/tmgw_const.h	Sat Mar 11 21:44:40 2023 -0800
@@ -2,12 +2,21 @@
  * 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_DUMMY_GSM		1
-#define	TMGW_EP_TYPE_DUMMY_PSTN		2
+#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