If the D-channel goes down and comes back up, consider it "up" on any event other...
authorMark Spencer <markster@digium.com>
Tue, 22 Mar 2005 16:26:54 +0000 (16:26 +0000)
committerMark Spencer <markster@digium.com>
Tue, 22 Mar 2005 16:26:54 +0000 (16:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5226 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index b77776d..cf85270 100755 (executable)
@@ -7690,6 +7690,8 @@ static void *pri_dchannel(void *vpri)
                if (e) {
                        if (pri->debug)
                                pri_dump_event(pri->dchans[which], e);
+                       if (e->e != PRI_EVENT_DCHAN_DOWN)
+                               pri->dchanavail[which] |= DCHAN_UP;
                        switch(e->e) {
                        case PRI_EVENT_DCHAN_UP:
                                if (option_verbose > 1)