From: Matthew Fredrickson Date: Mon, 30 Oct 2006 17:32:04 +0000 (+0000) Subject: Specify which linkset we're getting the messages from in the message X-Git-Tag: 1.6.0-beta1~3^2~4224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bfa05d373e8f26b2002fa66278f1dc152c6377a;p=thirdparty%2Fasterisk.git Specify which linkset we're getting the messages from in the message git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46459 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index bf8a182416..23d715f8d9 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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 */