[asterisk-commits] tzafrir: branch tzafrir/monitor-rtp r214080 - /team/tzafrir/monitor-rtp/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Aug 25 15:07:53 CDT 2009
Author: tzafrir
Date: Tue Aug 25 15:07:50 2009
New Revision: 214080
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=214080
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/res/res_monitor.c
Modified: team/tzafrir/monitor-rtp/res/res_monitor.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/tzafrir/monitor-rtp/res/res_monitor.c?view=diff&rev=214080&r1=214079&r2=214080
==============================================================================
--- team/tzafrir/monitor-rtp/res/res_monitor.c (original)
+++ team/tzafrir/monitor-rtp/res/res_monitor.c Tue Aug 25 15:07:50 2009
@@ -615,6 +615,12 @@
{
int res = 0;
+ 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 asterisk-commits
mailing list