summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fredrickson <creslin@digium.com>2007-05-14 22:25:56 +0000
committerMatthew Fredrickson <creslin@digium.com>2007-05-14 22:25:56 +0000
commit79f553a4abeab27281878e69a617ecea17e590f1 (patch)
tree58c12ca7b91e5759453ca5c2856c3275f6dd7e7d
parentee7301ac680fd4e9e8e59def448c450dbcaa550f (diff)
Only print the SS7 UP once. Not every time we get the test messages on the
line. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64384 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_zap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 5f3c23fb9..3aa200f74 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -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: