[asterisk-commits] mattf: trunk r46459 - /trunk/channels/chan_zap.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Oct 30 10:32:05 MST 2006
Author: mattf
Date: Mon Oct 30 11:32:04 2006
New Revision: 46459
URL: http://svn.digium.com/view/asterisk?rev=46459&view=rev
Log:
Specify which linkset we're getting the messages from in the message
Modified:
trunk/channels/chan_zap.c
Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=46459&r1=46458&r2=46459&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Mon Oct 30 11:32:04 2006
@@ -8753,12 +8753,24 @@
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 */
More information about the asterisk-commits
mailing list