Only print the SS7 UP once. Not every time we get the test messages on the
authorMatthew Fredrickson <creslin@digium.com>
Mon, 14 May 2007 22:25:56 +0000 (22:25 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Mon, 14 May 2007 22:25:56 +0000 (22:25 +0000)
line.

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

channels/chan_zap.c

index 5f3c23f..3aa200f 100644 (file)
@@ -8619,9 +8619,10 @@ static void *ss7_linkset(void *data)
                while ((e = ss7_check_event(ss7))) {
                        switch (e->e) {
                        case SS7_EVENT_UP:
-                               ast_verbose("--- SS7 Up ---\n");
-                               if (linkset->state != LINKSET_STATE_UP)
+                               if (linkset->state != LINKSET_STATE_UP) {
+                                       ast_verbose("--- SS7 Up ---\n");
                                        ss7_reset_linkset(linkset);
+                               }
                                linkset->state = LINKSET_STATE_UP;
                                break;
                        case SS7_EVENT_DOWN: