[asterisk-commits] file: trunk r187036 - in /trunk: main/rtp_engine.c res/res_rtp_asterisk.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 8 11:27:48 CDT 2009
Author: file
Date: Wed Apr 8 11:27:36 2009
New Revision: 187036
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=187036
Log:
Turn a warning message into a debug message and do not treat two situations as errors when they are not.
Modified:
trunk/main/rtp_engine.c
trunk/res/res_rtp_asterisk.c
Modified: trunk/main/rtp_engine.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/rtp_engine.c?view=diff&rev=187036&r1=187035&r2=187036
==============================================================================
--- trunk/main/rtp_engine.c (original)
+++ trunk/main/rtp_engine.c Wed Apr 8 11:27:36 2009
@@ -1160,7 +1160,7 @@
/* Grab glue that binds each channel to something using the RTP engine */
if (!(glue0 = ast_rtp_instance_get_glue(c0->tech->type)) || !(glue1 = ast_rtp_instance_get_glue(c1->tech->type))) {
- ast_log(LOG_WARNING, "Can't find native functions for channel '%s'\n", glue0 ? c1->name : c0->name);
+ ast_debug(1, "Can't find native functions for channel '%s'\n", glue0 ? c1->name : c0->name);
goto done;
}
@@ -1256,7 +1256,7 @@
/* Grab glue that binds each channel to something using the RTP engine */
if (!(glue0 = ast_rtp_instance_get_glue(c0->tech->type)) || !(glue1 = ast_rtp_instance_get_glue(c1->tech->type))) {
- ast_log(LOG_WARNING, "Can't find native functions for channel '%s'\n", glue0 ? c1->name : c0->name);
+ ast_debug(1, "Can't find native functions for channel '%s'\n", glue0 ? c1->name : c0->name);
goto done;
}
Modified: trunk/res/res_rtp_asterisk.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/res/res_rtp_asterisk.c?view=diff&rev=187036&r1=187035&r2=187036
==============================================================================
--- trunk/res/res_rtp_asterisk.c (original)
+++ trunk/res/res_rtp_asterisk.c Wed Apr 8 11:27:36 2009
@@ -1094,13 +1094,13 @@
/* If we don't actually know the remote address don't even bother doing anything */
if (!remote_address.sin_addr.s_addr) {
ast_debug(1, "No remote address on RTP instance '%p' so dropping frame\n", instance);
- return -1;
+ return 0;
}
/* If there is no data length we can't very well send the packet */
if (!frame->datalen) {
ast_debug(1, "Received frame with no data for RTP instance '%p' so dropping frame\n", instance);
- return -1;
+ return 0;
}
/* If the packet is not one our RTP stack supports bail out */
More information about the asterisk-commits
mailing list