[svn-commits] tzafrir: branch tzafrir/monitor-rtp-14 r213895 - /team/tzafrir/monitor-rtp-14...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Aug 24 18:42:29 CDT 2009


Author: tzafrir
Date: Mon Aug 24 18:42:25 2009
New Revision: 213895

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=213895
Log:
enable monitoring to RTP when asked for

Actually send monitoring output to RTP if "rtp_server" was set in
monitor.conf .

Modified:
    team/tzafrir/monitor-rtp-14/res/res_monitor.c

Modified: team/tzafrir/monitor-rtp-14/res/res_monitor.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/tzafrir/monitor-rtp-14/res/res_monitor.c?view=diff&rev=213895&r1=213894&r2=213895
==============================================================================
--- team/tzafrir/monitor-rtp-14/res/res_monitor.c (original)
+++ team/tzafrir/monitor-rtp-14/res/res_monitor.c Mon Aug 24 18:42:25 2009
@@ -452,6 +452,12 @@
 	int res = 0;
 	char tmp[256];
 
+	if(rtp_server_name[0] != '\0') {
+		if(monitor2rtp_start(chan, need_lock) < 0) {
+			return -1;
+		}
+		return 0;
+	}
 	LOCK_IF_NEEDED(chan, need_lock);
 
 	if (!(chan->monitor)) {




More information about the svn-commits mailing list