]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Turn a warning message into a debug message and do not treat two situations as errors...
authorJoshua Colp <jcolp@digium.com>
Wed, 8 Apr 2009 16:27:36 +0000 (16:27 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 8 Apr 2009 16:27:36 +0000 (16:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187036 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp_engine.c
res/res_rtp_asterisk.c

index 51f60dcfd8c359363948f4fd9d02e7367b8006af..a977c5a318f1721f893f48b2f10624211dd770f7 100644 (file)
@@ -1160,7 +1160,7 @@ enum ast_bridge_result ast_rtp_instance_bridge(struct ast_channel *c0, struct as
 
        /* 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 @@ void ast_rtp_instance_early_bridge_make_compatible(struct ast_channel *c0, struc
 
        /* 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;
        }
 
index a04291bb9ae8344a0760ba273e79d5bb288dc70f..7da086dd55a2ad5e9cdbb06ac2d9ff36e895dc11 100644 (file)
@@ -1094,13 +1094,13 @@ static int ast_rtp_write(struct ast_rtp_instance *instance, struct ast_frame *fr
        /* 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 */