diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-01-23 17:36:28 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-01-23 17:36:28 +0000 |
commit | 74508e3bcabdb649ebffad129dfc3686fc283bff (patch) | |
tree | 2706169f61147506770b1f0179df16d7da748898 | |
parent | 20c6ff71b634e8c200dedec3781776d89fbf22a6 (diff) |
Fix sip_cfg.notifycid to be set with the defined enum values.
The invalid value used when notifycid was enabled was benign. As far as
the code was concerned -1 and 1 are equivalent.
(closes issue ASTERISK-19232)
Reported by: Eike Kuiper
........
Merged revisions 352090 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 352091 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@352092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a503e4965..5b2bfa8a1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -29005,7 +29005,7 @@ static int reload_config(enum channelreloadreason reason) if (!strcasecmp(v->value, "ignore-context")) { sip_cfg.notifycid = IGNORE_CONTEXT; } else { - sip_cfg.notifycid = ast_true(v->value); + sip_cfg.notifycid = ast_true(v->value) ? ENABLED : DISABLED; } } else if (!strcasecmp(v->name, "alwaysauthreject")) { sip_cfg.alwaysauthreject = ast_true(v->value); |