Przeglądaj źródła

enable is renamed to enabled (enable is a keyword)

Miklos Tirpak 17 lat temu
rodzic
commit
28b6f779d2
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      etc/ser-oob.cfg

+ 5 - 5
etc/ser-oob.cfg

@@ -249,7 +249,7 @@ session_timer.min_se = "90" desc "minimum session interval (in s)"
 #             and enable the rtp proxy when necessary
 #
 #DEBCONF-RTP_ENABLE-START
-rtp_proxy.enable = "detect" desc "indicates whether the RTP Proxy is enabled or not (0/1/detect)"
+rtp_proxy.enabled = "detect" desc "indicates whether the RTP Proxy is enabled or not (0/1/detect)"
 #DEBCONF-RTP_ENABLE-END
 
 # ------------------ Module Loading -----------------------------------------
@@ -734,17 +734,17 @@ route[NAT_DETECTION]
 #
 route[RTPPROXY]
 {
-	if (@cfg_get.rtp_proxy.enable == "0") {
+	if (@cfg_get.rtp_proxy.enabled == "0") {
 		# RTP Proxy is disabled
 		break;
-	} else if (@cfg_get.rtp_proxy.enable == "detect") {
+	} else if (@cfg_get.rtp_proxy.enabled == "detect") {
 		if (!isflagset(FLAG_NAT)) {
 			# If no NAT is involved we don't have to do here anything.
 			break;
 		}
-	} else if (@cfg_get.rtp_proxy.enable != "1") {
+	} else if (@cfg_get.rtp_proxy.enabled != "1") {
 		# This is not a valid setting
-		xlog("L_ERR", "Unknown option for rtp_proxy.enable: %@cfg_get.rtp_proxy.enable\n");
+		xlog("L_ERR", "Unknown option for rtp_proxy.enabled: %@cfg_get.rtp_proxy.enabled\n");
 		break;
 	} # else rtp proxy is permanently enabled