[Asterisk-cvs] asterisk/res res_monitor.c,1.3,1.4

markster at lists.digium.com markster at lists.digium.com
Mon Sep 8 11:43:28 CDT 2003


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv30911/res

Modified Files:
	res_monitor.c 
Log Message:
First of Jayson's manager patches


Index: res_monitor.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_monitor.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** res_monitor.c	13 Aug 2003 15:25:16 -0000	1.3
--- res_monitor.c	8 Sep 2003 16:44:36 -0000	1.4
***************
*** 283,287 ****
  	char *format = astman_get_header(m, "Format");
  	if((!name)||(!strlen(name))) {
! 		astman_send_error(s, "No channel specified");
  		return 0;
  	}
--- 283,287 ----
  	char *format = astman_get_header(m, "Format");
  	if((!name)||(!strlen(name))) {
! 		astman_send_error(s, m, "No channel specified");
  		return 0;
  	}
***************
*** 294,307 ****
  	}
  	if (!c) {
! 		astman_send_error(s, "No such channel");
  		return 0;
  	}
  	if( ast_monitor_start( c, format, fname, 1 ) ) {
  		if( ast_monitor_change_fname( c, fname, 1 ) ) {
! 			astman_send_error(s, "Could not start monitoring channel");
  			return 0;
  		}
  	}
! 	astman_send_ack(s, "Started monitoring channel");
  	return 0;
  }
--- 294,307 ----
  	}
  	if (!c) {
! 		astman_send_error(s, m, "No such channel");
  		return 0;
  	}
  	if( ast_monitor_start( c, format, fname, 1 ) ) {
  		if( ast_monitor_change_fname( c, fname, 1 ) ) {
! 			astman_send_error(s, m, "Could not start monitoring channel");
  			return 0;
  		}
  	}
! 	astman_send_ack(s, m, "Started monitoring channel");
  	return 0;
  }
***************
*** 312,316 ****
  	char *name = astman_get_header(m, "Channel");
  	if((!name)||(!strlen(name))) {
! 		astman_send_error(s, "No channel specified");
  		return 0;
  	}
--- 312,316 ----
  	char *name = astman_get_header(m, "Channel");
  	if((!name)||(!strlen(name))) {
! 		astman_send_error(s, m, "No channel specified");
  		return 0;
  	}
***************
*** 323,334 ****
  	}
  	if (!c) {
! 		astman_send_error(s, "No such channel");
  		return 0;
  	}
  	if( ast_monitor_stop( c, 1 ) ) {
! 		astman_send_error(s, "Could not stop monitoring channel");
  		return 0;
  	}
! 	astman_send_ack(s, "Stopped monitoring channel");
  	return 0;
  }
--- 323,334 ----
  	}
  	if (!c) {
! 		astman_send_error(s, m, "No such channel");
  		return 0;
  	}
  	if( ast_monitor_stop( c, 1 ) ) {
! 		astman_send_error(s, m, "Could not stop monitoring channel");
  		return 0;
  	}
! 	astman_send_ack(s, m, "Stopped monitoring channel");
  	return 0;
  }
***************
*** 340,348 ****
  	char *fname = astman_get_header(m, "File");
  	if((!name) || (!strlen(name))) {
! 		astman_send_error(s, "No channel specified");
  		return 0;
  	}
  	if ((!fname)||(!strlen(fname))) {
! 		astman_send_error(s, "No filename specified");
  		return 0;
  	}
--- 340,348 ----
  	char *fname = astman_get_header(m, "File");
  	if((!name) || (!strlen(name))) {
! 		astman_send_error(s, m, "No channel specified");
  		return 0;
  	}
  	if ((!fname)||(!strlen(fname))) {
! 		astman_send_error(s, m, "No filename specified");
  		return 0;
  	}
***************
*** 355,366 ****
  	}
  	if (!c) {
! 		astman_send_error(s, "No such channel");
  		return 0;
  	}
  	if( ast_monitor_change_fname( c, fname, 1 ) ) {
! 		astman_send_error(s, "Could not change monitored filename of channel");
  		return 0;
  	}
! 	astman_send_ack(s, "Stopped monitoring channel");
  	return 0;
  }
--- 355,366 ----
  	}
  	if (!c) {
! 		astman_send_error(s, m, "No such channel");
  		return 0;
  	}
  	if( ast_monitor_change_fname( c, fname, 1 ) ) {
! 		astman_send_error(s, m, "Could not change monitored filename of channel");
  		return 0;
  	}
! 	astman_send_ack(s, m, "Stopped monitoring channel");
  	return 0;
  }




More information about the svn-commits mailing list