[asterisk-commits] kharwell: branch 1.8 r405656 - in /branches/1.8: configs/ res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 16 11:27:08 CST 2014
Author: kharwell
Date: Thu Jan 16 11:27:05 2014
New Revision: 405656
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=405656
Log:
res_fax: check_modem_rate() returned incorrect rate for V.27
According to the new standard for V.27 and V.32 they are able to transmit
at a bit rate of 4,800 or 9,600. The check_mode_rate function needed to be
updated to reflect this. Also, because of this change the default 'minrate'
value was updated to be 4800.
(closes issue ASTERISK-22790)
Reported by: Paolo Compagnini
Patches:
res_fax.txt uploaded by looserouting (license 6548)
Modified:
branches/1.8/configs/res_fax.conf.sample
branches/1.8/res/res_fax.c
Modified: branches/1.8/configs/res_fax.conf.sample
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/configs/res_fax.conf.sample?view=diff&rev=405656&r1=405655&r2=405656
==============================================================================
--- branches/1.8/configs/res_fax.conf.sample (original)
+++ branches/1.8/configs/res_fax.conf.sample Thu Jan 16 11:27:05 2014
@@ -8,8 +8,8 @@
; Minimum Transmission Rate
; Possible values are { 2400 | 4800 | 7200 | 9600 | 12000 | 14400 }
-; Set this value to the minimum desired transfer rate. Default: 2400
-minrate=2400
+; Set this value to the minimum desired transfer rate. Default: 4800
+minrate=4800
; Send Progress/Status events to manager session
; Manager events with 'call' class permissions will receive events indicating the
Modified: branches/1.8/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_fax.c?view=diff&rev=405656&r1=405655&r2=405656
==============================================================================
--- branches/1.8/res/res_fax.c (original)
+++ branches/1.8/res/res_fax.c Thu Jan 16 11:27:05 2014
@@ -244,7 +244,7 @@
};
static AST_RWLIST_HEAD_STATIC(faxmodules, fax_module);
-#define RES_FAX_MINRATE 2400
+#define RES_FAX_MINRATE 4800
#define RES_FAX_MAXRATE 14400
#define RES_FAX_STATUSEVENTS 0
#define RES_FAX_MODEM (AST_FAX_MODEM_V17 | AST_FAX_MODEM_V27 | AST_FAX_MODEM_V29)
@@ -573,7 +573,7 @@
{
switch (rate) {
case 2400:
- if (!(modems & (AST_FAX_MODEM_V27 | AST_FAX_MODEM_V34))) {
+ if (!(modems & (AST_FAX_MODEM_V34))) {
return 1;
}
break;
@@ -583,8 +583,12 @@
}
break;
case 7200:
+ if (!(modems & (AST_FAX_MODEM_V17 | AST_FAX_MODEM_V29 | AST_FAX_MODEM_V34))) {
+ return 1;
+ }
+ break;
case 9600:
- if (!(modems & (AST_FAX_MODEM_V17 | AST_FAX_MODEM_V29 | AST_FAX_MODEM_V34))) {
+ if (!(modems & (AST_FAX_MODEM_V17 | AST_FAX_MODEM_V27 | AST_FAX_MODEM_V29 | AST_FAX_MODEM_V34))) {
return 1;
}
break;
More information about the asterisk-commits
mailing list