[asterisk-commits] rizzo: branch 1.4 r48583 - /branches/1.4/apps/app_sms.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Dec 19 14:03:02 MST 2006


Author: rizzo
Date: Tue Dec 19 15:03:02 2006
New Revision: 48583

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48583
Log:
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.


Modified:
    branches/1.4/apps/app_sms.c

Modified: branches/1.4/apps/app_sms.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_sms.c?view=diff&rev=48583&r1=48582&r2=48583
==============================================================================
--- branches/1.4/apps/app_sms.c (original)
+++ branches/1.4/apps/app_sms.c Tue Dec 19 15:03:02 2006
@@ -1198,7 +1198,7 @@
 #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;



More information about the asterisk-commits mailing list