mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Fix jitter buffer log file creation
This adjusts '/'-to-'#' replacement to replace all instances of '/' instead of just the first to ensure that the jitter buffer log file gets the correct name as per Richard Kenner's suggestion. (closes issue ASTERISK-21036) Reported by: Richard Kenner ........ Merged revisions 399402 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 399403 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 399404 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@399405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -446,7 +446,7 @@ static int create_jb(struct ast_channel *chan, struct ast_frame *frr) | ||||
| 		int safe_fd; | ||||
|  | ||||
| 		snprintf(name2, sizeof(name2), "%s", ast_channel_name(chan)); | ||||
| 		if ((tmp = strchr(name2, '/'))) { | ||||
| 		while ((tmp = strchr(name2, '/'))) { | ||||
| 			*tmp = '#'; | ||||
| 		} | ||||
|  | ||||
| @@ -454,7 +454,7 @@ static int create_jb(struct ast_channel *chan, struct ast_frame *frr) | ||||
| 		ast_assert(bridged != NULL); | ||||
|  | ||||
| 		snprintf(name1, sizeof(name1), "%s", ast_channel_name(bridged)); | ||||
| 		if ((tmp = strchr(name1, '/'))) { | ||||
| 		while ((tmp = strchr(name1, '/'))) { | ||||
| 			*tmp = '#'; | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user