rename "parking" to "features" in preparation for some more (possibly post 1.0) featu...
authorMark Spencer <markster@digium.com>
Sat, 17 Jul 2004 20:58:01 +0000 (20:58 +0000)
committerMark Spencer <markster@digium.com>
Sat, 17 Jul 2004 20:58:01 +0000 (20:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3463 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 files changed:
apps/app_dial.c
apps/app_parkandannounce.c
apps/app_queue.c
channels/chan_agent.c
channels/chan_iax2.c
channels/chan_mgcp.c
channels/chan_sip.c
channels/chan_skinny.c
channels/chan_zap.c
configs/features.conf.sample [moved from configs/parking.conf.sample with 100% similarity]
include/asterisk/features.h [moved from include/asterisk/parking.h with 100% similarity]
res/Makefile
res/res_features.c [moved from res/res_parking.c with 99% similarity]

index d44de70..43ff0c3 100755 (executable)
@@ -21,7 +21,7 @@
 #include <asterisk/translate.h>
 #include <asterisk/say.h>
 #include <asterisk/config.h>
-#include <asterisk/parking.h>
+#include <asterisk/features.h>
 #include <asterisk/musiconhold.h>
 #include <asterisk/callerid.h>
 #include <asterisk/utils.h>
index 2faa92d..c3f949e 100755 (executable)
@@ -21,7 +21,7 @@
 #include <asterisk/channel_pvt.h>
 #include <asterisk/pbx.h>
 #include <asterisk/module.h>
-#include <asterisk/parking.h>
+#include <asterisk/features.h>
 #include <asterisk/options.h>
 #include <asterisk/logger.h>
 #include <asterisk/say.h>
index 45690fd..6fe9f6d 100755 (executable)
@@ -38,7 +38,7 @@
 #include <asterisk/module.h>
 #include <asterisk/translate.h>
 #include <asterisk/say.h>
-#include <asterisk/parking.h>
+#include <asterisk/features.h>
 #include <asterisk/musiconhold.h>
 #include <asterisk/cli.h>
 #include <asterisk/manager.h>
index bf71e9a..6371e07 100755 (executable)
@@ -32,7 +32,7 @@
 #include <asterisk/app.h>
 #include <asterisk/musiconhold.h>
 #include <asterisk/manager.h>
-#include <asterisk/parking.h>
+#include <asterisk/features.h>
 #include <asterisk/utils.h>
 #include <sys/socket.h>
 #include <errno.h>
index 53e28c8..58945b7 100755 (executable)
@@ -33,7 +33,7 @@
 #include <asterisk/app.h>
 #include <asterisk/astdb.h>
 #include <asterisk/musiconhold.h>
-#include <asterisk/parking.h>
+#include <asterisk/features.h>
 #include <asterisk/utils.h>
 #include <sys/mman.h>
 #include <arpa/inet.h>
index 61391a7..67e9081 100755 (executable)
@@ -68,7 +68,7 @@
 #include <asterisk/say.h>
 #include <asterisk/cdr.h>
 #include <asterisk/astdb.h>
-#include <asterisk/parking.h>
+#include <asterisk/features.h>
 #include <asterisk/app.h>
 #include <asterisk/musiconhold.h>
 #include <asterisk/utils.h>
index 47d229e..9a3105d 100755 (executable)
@@ -34,7 +34,7 @@
 #include <asterisk/app.h>
 #include <asterisk/musiconhold.h>
 #include <asterisk/dsp.h>
-#include <asterisk/parking.h>
+#include <asterisk/features.h>
 #include <asterisk/acl.h>
 #include <asterisk/srv.h>
 #include <asterisk/astdb.h>
index c624324..df3398d 100755 (executable)
@@ -34,7 +34,7 @@
 #include <asterisk/say.h>
 #include <asterisk/cdr.h>
 #include <asterisk/astdb.h>
-#include <asterisk/parking.h>
+#include <asterisk/features.h>
 #include <asterisk/app.h>
 #include <asterisk/musiconhold.h>
 #include <asterisk/utils.h>
index 48e6cf2..d5d17f4 100755 (executable)
@@ -28,7 +28,7 @@
 #include <asterisk/adsi.h>
 #include <asterisk/cli.h>
 #include <asterisk/cdr.h>
-#include <asterisk/parking.h>
+#include <asterisk/features.h>
 #include <asterisk/musiconhold.h>
 #include <asterisk/say.h>
 #include <asterisk/tdd.h>
index afd3af9..39d079e 100755 (executable)
@@ -11,7 +11,7 @@
 # the GNU General Public License
 #
 
-MODS=res_adsi.so res_parking.so res_crypto.so res_musiconhold.so res_indications.so res_monitor.so \
+MODS=res_adsi.so res_features.so res_crypto.so res_musiconhold.so res_indications.so res_monitor.so \
      res_agi.so
 MODS+=$(shell if [ -f "/usr/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi)
 MODS+=$(shell if [ -f "/usr/local/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi)
@@ -31,7 +31,9 @@ OSPLIB=/usr/lib/libosp.a
 all: depend $(MODS)
 
 install: all
+       rm -f $(DESTDIR)$(ASTHEADERDIR)/parking.h
        rm -f $(DESTDIR)$(MODULES_DIR)/app_agi.so 
+       rm -f $(DESTDIR)$(MODULES_DIR)/res_parking.so
        for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
 
 res_crypto.so: res_crypto.o
similarity index 99%
rename from res/res_parking.c
rename to res/res_features.c
index b7d1b22..b55f1be 100755 (executable)
@@ -21,7 +21,7 @@
 #include <asterisk/translate.h>
 #include <asterisk/say.h>
 #include <asterisk/channel_pvt.h>
-#include <asterisk/parking.h>
+#include <asterisk/features.h>
 #include <asterisk/musiconhold.h>
 #include <asterisk/config.h>
 #include <asterisk/cli.h>
@@ -697,7 +697,12 @@ int load_module(void)
 
        ast_cli_register(&showparked);
 
-       cfg = ast_load("parking.conf");
+       cfg = ast_load("features.conf");
+       if (!cfg) {
+               cfg = ast_load("parking.conf");
+               if (cfg)
+                       ast_log(LOG_NOTICE, "parking.conf is deprecated in favor of 'features.conf'.  Please rename it.\n");
+       }
        if (cfg) {
                var = ast_variable_browse(cfg, "general");
                while(var) {