[asterisk-commits] branch group/rtpjitterbuffer r30933 -
/team/group/rtpjitterbuffer/abstract_jb.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue May 30 14:24:05 MST 2006
Author: russell
Date: Tue May 30 16:24:04 2006
New Revision: 30933
URL: http://svn.digium.com/view/asterisk?rev=30933&view=rev
Log:
make the green jb_verbose messages regular ast_verbose messages
Modified:
team/group/rtpjitterbuffer/abstract_jb.c
Modified: team/group/rtpjitterbuffer/abstract_jb.c
URL: http://svn.digium.com/view/asterisk/team/group/rtpjitterbuffer/abstract_jb.c?rev=30933&r1=30932&r2=30933&view=diff
==============================================================================
--- team/group/rtpjitterbuffer/abstract_jb.c (original)
+++ team/group/rtpjitterbuffer/abstract_jb.c Tue May 30 16:24:04 2006
@@ -154,15 +154,6 @@
/* JB_GET actions (used only for the frames log) */
static char *jb_get_actions[] = {"Delivered", "Dropped", "Interpolated", "No"};
-
-/*! \brief Macros for JB logs */
-/*#define jb_verbose(...) ast_verbose(VERBOSE_PREFIX_3 " ***[JB LOG]*** " __VA_ARGS__)*/
-#define jb_verbose(...) do {\
- char tmp[192];\
- char msg[128];\
- snprintf(msg, sizeof(msg), VERBOSE_PREFIX_3 "***[JB LOG]*** " __VA_ARGS__);\
- ast_verbose("%s\n", term_color(tmp, msg, COLOR_BRGREEN, 0, sizeof(tmp))); \
-} while (0);
/*! \brief Macros for the frame log files */
#define jb_framelog(...) do { \
@@ -515,8 +506,9 @@
jb_framelog("JB_PUT_FIRST {now=%ld}: Dropped frame with ts=%ld and len=%ld\n",
now, frr->ts, frr->len);
}
-
- jb_verbose("%s jitterbuffer created on channel %s", jbimpl->name, chan->name);
+
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_3 "%s jitterbuffer created on channel %s", jbimpl->name, chan->name);
/* Free the frame if it has not been queued in the jb */
if (res != JB_IMPL_OK)
@@ -548,8 +540,9 @@
jb->jbobj = NULL;
ast_clear_flag(jb, JB_CREATED);
-
- jb_verbose("%s jitterbuffer destroyed on channel %s", jbimpl->name, chan->name);
+
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_3 "%s jitterbuffer destroyed on channel %s", jbimpl->name, chan->name);
}
}
More information about the asterisk-commits
mailing list