diff options
author | Richard Mudgett <rmudgett@digium.com> | 2014-10-21 18:04:43 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2014-10-21 18:04:43 +0000 |
commit | 2165868be731d9a6d81cba249848de492d43e779 (patch) | |
tree | bc48499d7f6cbd1c7c7aa92b82011ffe50239fad /main | |
parent | dad0334cf1b907252dbd6a7ab54e66292983c889 (diff) |
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.
........
Merged revisions 426079 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@426080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/translate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/translate.c b/main/translate.c index 2778ebccf..72abb59eb 100644 --- a/main/translate.c +++ b/main/translate.c @@ -845,6 +845,7 @@ const char *ast_translate_path_to_str(struct ast_trans_pvt *p, struct ast_str ** return ""; } + ast_str_reset(*str); codec_append_name(&p->t->src_codec, str); while (p) { ast_str_append(str, 0, "->"); |