[asterisk-commits] may: branch may/ooh323_ipv6_direct_rtp r346468 - /team/may/ooh323_ipv6_direct...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Nov 30 09:52:27 CST 2011


Author: may
Date: Wed Nov 30 09:52:22 2011
New Revision: 346468

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=346468
Log:
show message in set rtp peer if debug enabled

Modified:
    team/may/ooh323_ipv6_direct_rtp/addons/chan_ooh323.c

Modified: team/may/ooh323_ipv6_direct_rtp/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/team/may/ooh323_ipv6_direct_rtp/addons/chan_ooh323.c?view=diff&rev=346468&r1=346467&r2=346468
==============================================================================
--- team/may/ooh323_ipv6_direct_rtp/addons/chan_ooh323.c (original)
+++ team/may/ooh323_ipv6_direct_rtp/addons/chan_ooh323.c Wed Nov 30 09:52:22 2011
@@ -4289,12 +4289,14 @@
 	ast_rtp_instance_get_local_address(rtp, &tmp); */
 	if (changed) {
 		if (!ast_sockaddr_isnull(&p->redirip)) {
-			ast_verb(0, "ooh323_set_rtp_peer  %s -> %s:%d\n", chan->name, ast_sockaddr_stringify_addr(&p->redirip),
+			if (gH323Debug)
+				ast_verb(0, "ooh323_set_rtp_peer  %s -> %s:%d\n", chan->name, ast_sockaddr_stringify_addr(&p->redirip),
 							ast_sockaddr_port(&p->redirip));
 			ooUpdateLogChannels(callToken, ast_sockaddr_stringify_addr(&p->redirip),
 							ast_sockaddr_port(&p->redirip));
 		} else {
-			ast_verb(0, "ooh323_set_rtp_peer  return back to local\n");
+			if (gH323Debug)
+				ast_verb(0, "ooh323_set_rtp_peer  return back to local\n");
 			ooUpdateLogChannels(callToken, "0.0.0.0" , 0);
 		}
 	}




More information about the asterisk-commits mailing list