Author: rmudgett
Date: Tue Oct 21 12:47:38 2014
New Revision: 426079

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=426079
Log:
translage.c: Fix regression when generating translation path strings.

Fix the AMI Status action read and write translation path strings from
growing for each channel in the status event list by reseting the ast
string given to ast_translate_path_to_str() to fill in the given
translation path.

Modified:
    branches/13/main/translate.c

Modified: branches/13/main/translate.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/13/main/translate.c?view=diff&rev=426079&r1=426078&r2=426079
==============================================================================
--- branches/13/main/translate.c (original)
+++ branches/13/main/translate.c Tue Oct 21 12:47:38 2014
@@ -845,6 +845,7 @@
                return "";
        }
 
+       ast_str_reset(*str);
        codec_append_name(&p->t->src_codec, str);
        while (p) {
                ast_str_append(str, 0, "->");


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to