Specify which linkset we're getting the messages from in the message
authorMatthew Fredrickson <creslin@digium.com>
Mon, 30 Oct 2006 17:32:04 +0000 (17:32 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Mon, 30 Oct 2006 17:32:04 +0000 (17:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46459 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index bf8a182..23d715f 100644 (file)
@@ -8753,12 +8753,24 @@ static void *ss7_linkset(void *data)
 
 static void zt_ss7_message(struct ss7 *ss7, char *s)
 {
-       ast_verbose("%s", s);
+       int i;
+
+       for (i = 0; i < NUM_SPANS; i++)
+               if (linksets[i].ss7 == ss7)
+                       break;
+
+       ast_verbose("[%d] %s", i, s);
 }
 
 static void zt_ss7_error(struct ss7 *ss7, char *s)
 {
-       ast_log(LOG_ERROR, "%s", s);
+       int i;
+
+       for (i = 0; i < NUM_SPANS; i++)
+               if (linksets[i].ss7 == ss7)
+                       break;
+
+       ast_log(LOG_ERROR, "[%d] %s", i, s);
 }
 #endif /* HAVE_SS7 */