[asterisk-commits] oej: branch oej/teapot-1.8 r405212 - /team/oej/teapot-1.8/res/res_rtp_asterisk.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 9 09:26:53 CST 2014
Author: oej
Date: Thu Jan 9 09:26:48 2014
New Revision: 405212
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=405212
Log:
Small debug fixes.
Modified:
team/oej/teapot-1.8/res/res_rtp_asterisk.c
Modified: team/oej/teapot-1.8/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/res/res_rtp_asterisk.c?view=diff&rev=405212&r1=405211&r2=405212
==============================================================================
--- team/oej/teapot-1.8/res/res_rtp_asterisk.c (original)
+++ team/oej/teapot-1.8/res/res_rtp_asterisk.c Thu Jan 9 09:26:48 2014
@@ -467,7 +467,7 @@
}
if ((*in & 0xC0) && res_srtp && srtp && res_srtp->unprotect(srtp, buf, &len, rtcp) < 0) {
- if (rtcpdebug) {
+ if (rtpdebug) {
ast_verbose("Got SRTP from %s - failed to decrypt information\n", ast_sockaddr_stringify(sa));
}
return -1;
@@ -1915,7 +1915,7 @@
if(!ast_test_flag(rtp, FLAG_CN_ACTIVE)) {
ast_set_flag(rtp, FLAG_CN_ACTIVE);
- ast_debug(0, "###### ACTIVATING Comfort Noise on channel Level - %d\n", rtp->f.subclass.integer);
+ ast_debug(2, "ACTIVATING Comfort Noise on channel Level - %d\n", rtp->f.subclass.integer);
/* Start the generator on the other end. */
} else {
@@ -2724,7 +2724,7 @@
if (payload.code != AST_RTP_CN && ast_test_flag(rtp, FLAG_CN_ACTIVE)) {
/* Insert a control frame to indicate that we need to shut down Comfort Noise generators, if active */
struct ast_frame cngoff = { AST_FRAME_CONTROL, { AST_CONTROL_CNG_END, } };
- ast_debug(0, "####### DEACTIVATING Comfort Noise \n");
+ ast_debug(2, "DEACTIVATING Comfort Noise \n");
ast_clear_flag(rtp, FLAG_CN_ACTIVE);
f = ast_frdup(&cngoff);
AST_LIST_INSERT_TAIL(&frames, f, frame_list);
@@ -2760,7 +2760,7 @@
if (ast_test_flag(rtp, FLAG_CN_ACTIVE)) {
struct ast_frame *f = NULL;
struct ast_frame cngoff = { AST_FRAME_CONTROL, { AST_CONTROL_CNG_END, } };
- ast_debug(0, "####### DEACTIVATING Comfort Noise \n");
+ ast_debug(2, "DEACTIVATING Comfort Noise \n");
ast_clear_flag(rtp, FLAG_CN_ACTIVE);
f = ast_frdup(&cngoff);
AST_LIST_INSERT_TAIL(&frames, f, frame_list);
@@ -3203,11 +3203,11 @@
{
struct ast_rtp *rtp = ast_rtp_instance_get_data(instance);
if (status) {
- ast_debug(1, "##### HOLDING RTCP, Have a nice day \n");
+ ast_debug(2, " HOLDING RTCP, Have a nice day \n");
ast_set_flag(rtp, FLAG_HOLD);
} else {
/* CLEAR */
- ast_debug(1, "##### UNHOLDING RTCP, You will get audio now. \n");
+ ast_debug(2, " UNHOLDING RTCP, You will get audio now. \n");
ast_clear_flag(rtp, FLAG_HOLD);
}
}
@@ -3217,12 +3217,12 @@
struct ast_rtp *rtp = ast_rtp_instance_get_data(instance);
struct ast_sockaddr addr = { {0,} };
- ast_debug(1, "##### Stopping RTP, Sending good bye \n");
+ ast_debug(2, " Stopping RTP, Sending good bye \n");
/* Send RTCP goodbye packet */
if (rtp->isactive && rtp->rtcp) {
ast_rtcp_write_sr(instance, 1);
- ast_debug(1, "##### Stopping RTCP, Sent good bye \n");
+ ast_debug(2, " Stopping RTCP, Sent good bye \n");
}
if (rtp->rtcp && rtp->rtcp->schedid > 0) {
if (!ast_sched_del(rtp->sched, rtp->rtcp->schedid)) {
@@ -3230,7 +3230,7 @@
ao2_ref(instance, -1);
}
rtp->rtcp->schedid = -1;
- ast_debug(1, "##### Stopping RTCP, Removing scheduler \n");
+ ast_debug(2, " Stopping RTCP, Removing scheduler \n");
}
if (rtp->red) {
@@ -3269,9 +3269,7 @@
}
ast_copy_string(rtp->rtcp->ourcname, cname, length+1);
rtp->rtcp->ourcnamelength = length;
- if (option_debug > 3) {
- ast_log(LOG_DEBUG, "--- Copied CNAME %s to RTCP structure (length %d)\n", cname, (int) length);
- }
+ ast_debug(3, "--- Copied CNAME %s to RTCP structure (length %d)\n", cname, (int) length);
}
/*! \brief set the name of the bridged channel
More information about the asterisk-commits
mailing list