[asterisk-commits] mjordan: branch 11 r397257 - in /branches/11: ./ include/asterisk/frame.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 21 10:12:59 CDT 2013
Author: mjordan
Date: Wed Aug 21 10:12:57 2013
New Revision: 397257
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397257
Log:
Set 14400 as the default max bit rate if T38MaxBitRate is not specified
If an endpoint fails to include the T38MaxBitRate attribute during negotiation,
Asterisk will negotiate a bit rate of 2400 instead of the ITU recommended
bit rate of 14400. This patch fixes this by making AST_T38_RATE_14400 the
'default' value of the enum by assigning it a value of 0, such that if an
endpoint fails to include the attribute, the default will be 14400.
Note that Walter Doekes included the nice comment in frame.h about why we are
purposefully assigning AST_T38_RATE_14400 a value of 0.
(closes issue ASTERISK-22275)
Reported by: Andreas Steinmetz
patches:
fax-fix.patch uploaded by anstein (License 6523)
........
Merged revisions 397256 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/include/asterisk/frame.h
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/include/asterisk/frame.h
URL: http://svnview.digium.com/svn/asterisk/branches/11/include/asterisk/frame.h?view=diff&rev=397257&r1=397256&r2=397257
==============================================================================
--- branches/11/include/asterisk/frame.h (original)
+++ branches/11/include/asterisk/frame.h Wed Aug 21 10:12:57 2013
@@ -296,12 +296,16 @@
};
enum ast_control_t38_rate {
- AST_T38_RATE_2400 = 0,
+ AST_T38_RATE_2400 = 1,
AST_T38_RATE_4800,
AST_T38_RATE_7200,
AST_T38_RATE_9600,
AST_T38_RATE_12000,
- AST_T38_RATE_14400,
+ /* Set to 0 so it's taken as default when unspecified.
+ * See ITU-T T.38 Implementors' Guide (11 May 2012),
+ * Table H.2: if the T38MaxBitRate attribute is omitted
+ * it should use a default of 14400. */
+ AST_T38_RATE_14400 = 0,
};
enum ast_control_t38_rate_management {
More information about the asterisk-commits
mailing list