summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2013-08-21 16:31:58 +0000
committerMatthew Jordan <mjordan@digium.com>2013-08-21 16:31:58 +0000
commit855024107c733e96a2252ccaff09fd9f094d0ada (patch)
tree74491da8d0d19fe213b7533925a9785e6b351ab6 /include/asterisk
parent5762c1b4ac5c1519463b31ab7078fcd9cb55a393 (diff)
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 ........ Merged revisions 397257 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/frame.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index 1cb7d591f..14491aed8 100644
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -312,12 +312,16 @@ enum ast_control_t38 {
};
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 {