]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Also, parse useincomingcalleridonzaptransfer (and add appropriate deprecation
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 Aug 2008 01:31:27 +0000 (01:31 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 Aug 2008 01:31:27 +0000 (01:31 +0000)
warnings).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@136348 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 44804a8122143c816aa7fb5cea2751298d4b89d9..b85e0ab38a22e9b8c7e7452d25a3ab4715689882 100644 (file)
@@ -10791,6 +10791,9 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct
                                        return -1;
                } else if (!strcasecmp(v->name, "zapchan") || !strcasecmp(v->name, "dahdichan")) {
                        ast_copy_string(dahdichan, v->value, sizeof(dahdichan));
+                       if (v->name[0] == 'z' || v->name[0] == 'Z') {
+                               ast_log(LOG_WARNING, "Option zapchan has been deprecated in favor of dahdichan (found in [%s])\n", cat);
+                       }
                } else if (!strcasecmp(v->name, "usedistinctiveringdetection")) {
                        if (ast_true(v->value))
                                confp->chan.usedistinctiveringdetection = 1;
@@ -10968,8 +10971,11 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct
                        ast_copy_string(confp->chan.cid_name, v->value, sizeof(confp->chan.cid_name));
                } else if (!strcasecmp(v->name, "cid_number")) {
                        ast_copy_string(confp->chan.cid_num, v->value, sizeof(confp->chan.cid_num));
-               } else if (!strcasecmp(v->name, "useincomingcalleridondahditransfer")) {
+               } else if (!strcasecmp(v->name, "useincomingcalleridondahditransfer") || !strcasecmp(v->name, "useincomingcalleridonzaptransfer")) {
                        confp->chan.dahditrcallerid = ast_true(v->value);
+                       if (strstr(v->name, "zap")) {
+                               ast_log(LOG_WARNING, "Option useincomingcalleridonzaptransfer has been deprecated in favor of useincomingcalleridondahditransfer (in [%s]).\n", cat);
+                       }
                } else if (!strcasecmp(v->name, "restrictcid")) {
                        confp->chan.restrictcid = ast_true(v->value);
                } else if (!strcasecmp(v->name, "usecallingpres")) {