aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_sms.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-19 21:03:02 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-19 21:03:02 +0000
commit42fff743b6d823ca7818a12c6beb79cec1fb32e7 (patch)
treeab25c85052d9801e5ee5d6d984806e16e429437b /apps/app_sms.c
parent7b4724372c9269a9f88161ad5c824c01227ccbd9 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@48583 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_sms.c')
-rw-r--r--apps/app_sms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c
index 5eb0f9f85..d56ada4fc 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;