# HG changeset patch
# User Mychaela Falconia <falcon@freecalypso.org>
# Date 1678599880 28800
# Node ID f4ed6042e16c3847817e8c3e7ae519be06529262
# Parent  9ebd89257ae1ea4fb074febafe3825412db8e237
include/tmgw_const.h: expanded architectural point of view

diff -r 9ebd89257ae1 -r f4ed6042e16c include/tmgw_const.h
--- 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