]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix mwimonitornotify on reload ... again. This option was only read at startup
authorRussell Bryant <russell@russellbryant.com>
Tue, 4 Dec 2007 23:57:31 +0000 (23:57 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 4 Dec 2007 23:57:31 +0000 (23:57 +0000)
so a reload would erase it and not reset it.  (pointed out by tzafrir)

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

channels/chan_zap.c

index 91183c298e8da483374cb12e70dc8587be8af04d..42275076ce3c1898fe45ed8d4f63ca8a0e58315e 100644 (file)
@@ -12655,6 +12655,8 @@ static int process_zap(struct zt_chan_conf *confp, struct ast_variable *v, int r
                        confp->chan.hanguponpolarityswitch = ast_true(v->value);
                } else if (!strcasecmp(v->name, "sendcalleridafter")) {
                        confp->chan.sendcalleridafter = atoi(v->value);
+               } else if (!strcasecmp(v->name, "mwimonitornotify")) {
+                       ast_copy_string(mwimonitornotify, v->value, sizeof(mwimonitornotify));
                } else if (!reload){ 
                         if (!strcasecmp(v->name, "signalling") || !strcasecmp(v->name, "signaling")) {
                                confp->chan.outsigmod = -1;
@@ -13168,8 +13170,6 @@ static int process_zap(struct zt_chan_conf *confp, struct ast_variable *v, int r
                                ast_copy_string(defaultcic, v->value, sizeof(defaultcic));
                        } else if (!strcasecmp(v->name, "defaultozz")) {
                                ast_copy_string(defaultozz, v->value, sizeof(defaultozz));
-                       } else if (!strcasecmp(v->name, "mwimonitornotify")) {
-                               ast_copy_string(mwimonitornotify, v->value, sizeof(mwimonitornotify));
                        }
                } else if (!skipchannels)
                        ast_log(LOG_WARNING, "Ignoring %s\n", v->name);