[asterisk-commits] kmoore: branch 12 r399404 - in /branches/12: ./ main/abstract_jb.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 18 14:59:26 CDT 2013


Author: kmoore
Date: Wed Sep 18 14:59:24 2013
New Revision: 399404

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399404
Log:
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

Modified:
    branches/12/   (props changed)
    branches/12/main/abstract_jb.c

Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: branches/12/main/abstract_jb.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/abstract_jb.c?view=diff&rev=399404&r1=399403&r2=399404
==============================================================================
--- branches/12/main/abstract_jb.c (original)
+++ branches/12/main/abstract_jb.c Wed Sep 18 14:59:24 2013
@@ -446,7 +446,7 @@
 		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 @@
 		ast_assert(bridged != NULL);
 
 		snprintf(name1, sizeof(name1), "%s", ast_channel_name(bridged));
-		if ((tmp = strchr(name1, '/'))) {
+		while ((tmp = strchr(name1, '/'))) {
 			*tmp = '#';
 		}
 




More information about the asterisk-commits mailing list