mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 02:18:31 +00:00
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
This commit is contained in:
@@ -1198,7 +1198,7 @@ static int sms_generate (struct ast_channel *chan, void *data, int len, int samp
|
|||||||
#else
|
#else
|
||||||
f.subclass = AST_FORMAT_SLINEAR;
|
f.subclass = AST_FORMAT_SLINEAR;
|
||||||
#endif
|
#endif
|
||||||
f.datalen = len;
|
f.datalen = samples * SAMPLE2LEN;
|
||||||
f.offset = AST_FRIENDLY_OFFSET;
|
f.offset = AST_FRIENDLY_OFFSET;
|
||||||
f.mallocd = 0;
|
f.mallocd = 0;
|
||||||
f.data = buf;
|
f.data = buf;
|
||||||
|
Reference in New Issue
Block a user