diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-20 23:14:42 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-20 23:14:42 +0000 |
commit | 705e57065d01c67ca951a62811bf56718859f3f1 (patch) | |
tree | f60a1e82a0ef2fd4f12f63be7364503ada14a41a /channels | |
parent | 6a0ebf4a7be54d89278bb7a94b4b856365c81931 (diff) |
The inalarm flag was not set in sig_analog struct if the port is initially in alarm.
Fixed initial inalarm value for sig_analog ports.
Along with -r261007, this gets the inalarm flag in sync with chan_dahdi
for sig_analog ports.
(closes issue #16983)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@287683 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_dahdi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index ad10f0034..c47535d5a 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -12401,6 +12401,11 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf, break; #endif /* defined(HAVE_SS7) */ default: + /* The only sig submodule left should be sig_analog. */ + analog_p = tmp->sig_pvt; + if (analog_p) { + analog_p->inalarm = 1; + } tmp->inalarm = 1; break; } |