mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Merged revisions 85533 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85533 | russell | 2007-10-13 01:48:10 -0400 (Sat, 13 Oct 2007) | 12 lines Fix an issue with console verbosity when running asterisk -rx to execute a command and retrieve its output. The issue was that there was no way for the main Asterisk process to know that the remote console was connecting in the -rx mode. The way that James has fixed this is to have all remote consoles muted by default. Then, regular remote consoles automatically execute a CLI command to unmute themselves when they first start up. (closes issue #10847) Reported by: atis Patches: asterisk-consolemute.diff.txt uploaded by jamesgolovich (license 176) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -371,9 +371,14 @@ static char *handle_logger_mute(struct ast_cli_entry *e, int cmd, struct ast_cli | ||||
| 		return NULL; | ||||
| 	} | ||||
|  | ||||
| 	if (a->argc != 2) | ||||
| 	if (a->argc < 2 || a->argc > 3) | ||||
| 		return CLI_SHOWUSAGE; | ||||
| 	ast_console_toggle_mute(a->fd); | ||||
|  | ||||
| 	if (a->argc == 3 && !strcasecmp(argv[2], "silent")) | ||||
| 		ast_console_toggle_mute(a->fd, 1); | ||||
| 	else | ||||
| 		ast_console_toggle_mute(a->fd, 0); | ||||
|  | ||||
| 	return CLI_SUCCESS; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user