Add support to see MTP2 down events when the link layer drops in SS7
authorMatthew Fredrickson <creslin@digium.com>
Mon, 30 Jun 2008 20:25:46 +0000 (20:25 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Mon, 30 Jun 2008 20:25:46 +0000 (20:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@126637 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index e2d22e2..af68b7c 100644 (file)
@@ -9545,7 +9545,10 @@ static void *ss7_linkset(void *data)
                                }
                                break;
                        case MTP2_LINK_UP:
-                               ast_debug(1, "MTP2 link up\n");
+                               ast_verbose("MTP2 link up (SLC %d)\n", e->gen.data);
+                               break;
+                       case MTP2_LINK_DOWN:
+                               ast_log(LOG_WARNING, "MTP2 link down (SLC %d)\n", e->gen.data);
                                break;
                        case ISUP_EVENT_CPG:
                                chanpos = ss7_find_cic(linkset, e->cpg.cic, e->cpg.opc);