]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
The inalarm flag was not set in sig_analog struct if the port is initially in alarm.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 20 Sep 2010 23:14:42 +0000 (23:14 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 20 Sep 2010 23:14:42 +0000 (23:14 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.8@287683 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index ad10f0034f07e871990ff1b7882b714324f8c9d7..c47535d5abc1e8100c413d49ce56abca0c85d519 100644 (file)
@@ -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;
                                }