From 8f7cc2c268426167b691d95578977594e27f6001 Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 30 Oct 2006 17:32:04 +0000 Subject: Specify which linkset we're getting the messages from in the message git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46459 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_zap.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'channels/chan_zap.c') diff --git a/channels/chan_zap.c b/channels/chan_zap.c index bf8a18241..23d715f8d 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 */ -- cgit v1.2.3