From: Luigi Rizzo Date: Tue, 19 Dec 2006 21:03:02 +0000 (+0000) Subject: fix a bogus datalen in the frames generated by app_sms X-Git-Tag: 1.4.0~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f325ae583f4dc589e1b249d08693527de4a58b1;p=thirdparty%2Fasterisk.git fix a bogus datalen in the frames generated by app_sms (causing noisy output if you listen to the output!) This affects trunk as well, whereas 1.2 is ok. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48583 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_sms.c b/apps/app_sms.c index 5eb0f9f850..d56ada4fc0 100644 --- a/apps/app_sms.c +++ b/apps/app_sms.c @@ -1198,7 +1198,7 @@ static int sms_generate (struct ast_channel *chan, void *data, int len, int samp #else f.subclass = AST_FORMAT_SLINEAR; #endif - f.datalen = len; + f.datalen = samples * SAMPLE2LEN; f.offset = AST_FRIENDLY_OFFSET; f.mallocd = 0; f.data = buf;