Summary: | ASTERISK-25001: SendFAX error | ||||||
Reporter: | Cedric BASSAGET (rico29) | Labels: | |||||
Date Opened: | 2015-04-23 09:29:30 | Date Closed: | 2015-04-24 12:08:44 | ||||
Priority: | Trivial | Regression? | Yes | ||||
Status: | Closed/Complete | Components: | Resources/res_fax | ||||
Versions: | 1.8.32.3 | Frequency of Occurrence | Constant | ||||
Related Issues: |
| ||||||
Environment: | [root@centrex-preprod src]# cat /etc/redhat-release CentOS release 6.5 (Final) [root@centrex-preprod src]# uname -r 2.6.32-431.17.1.el6.x86_64 | Attachments: | |||||
Description: | SendFAX with res_fax_digium does not work as expected.
Same configuration tested with asterisk 1.8.26.0 and asterisk 1.8.32.3 one the same server with same config files : {noformat} [root@centrex-preprod src]# cat /etc/asterisk/res_fax.conf| egrep -v "(^;.*|^$)" [general] maxrate=14400 minrate=2400 statusevents=yes modems=v17,v27,v29 ecm=yes {noformat} When sending a fax with asterisk 1.8.26.0 : {noformat} [Apr 23 16:03:56] -- Executing [send@fax-envoi:3] Set("SIP/1003-00000000", "FAXOPT(ecm)=yes") in new stack [Apr 23 16:03:56] -- Executing [send@fax-envoi:4] Set("SIP/1003-00000000", "FAXOPT(headerinfo)=Fax recu de 0970559970 le 23/04/2015 a 16:03:56") in new stack [Apr 23 16:03:56] -- Executing [send@fax-envoi:5] Set("SIP/1003-00000000", "FAXOPT(localstationid)=0970559970") in new stack [Apr 23 16:03:56] -- Executing [send@fax-envoi:6] Set("SIP/1003-00000000", "FAXOPT(maxrate)=14400") in new stack [Apr 23 16:03:56] -- Executing [send@fax-envoi:7] Set("SIP/1003-00000000", "FAXOPT(minrate)=2400") in new stack [Apr 23 16:03:56] -- Executing [send@fax-envoi:8] SendFAX("SIP/1003-00000000", "/var/www/html/centrex/datas/fax/tiff/5538fbb729a99-scan11.tiff") in new stack [Apr 23 16:03:56] -- Channel 'SIP/1003-00000000' sending FAX: [Apr 23 16:03:56] -- /var/www/html/centrex/datas/fax/tiff/5538fbb729a99-scan11.tiff [Apr 23 16:03:56] == Using UDPTL TOS bits 184 [Apr 23 16:03:56] == Using UDPTL CoS mark 5 [Apr 23 16:03:56] -- Channel 'SIP/1003-00000000' FAX session '0' started [Apr 23 16:04:16] -- FAX handle 0: [ 020.081374 ], entering CLOSING state [Apr 23 16:04:20] -- Channel 'SIP/1003-00000000' FAX session '0' is complete, result: 'FAILED' (FAX_FAILURE_PARTIAL), error: 'FILE_IO_FAIL', pages: 1, resolution: '204x196', transfer rate: '9600', remoteSID: 'FreeFax 0978111950' {noformat} When sending a fax with asterisk 1.8.32.3 : {noformat} [Apr 23 16:26:07] -- Executing [send@fax-envoi:3] Set("SIP/1003-00000000", "FAXOPT(ecm)=yes") in new stack [Apr 23 16:26:07] -- Executing [send@fax-envoi:4] Set("SIP/1003-00000000", "FAXOPT(headerinfo)=Fax recu de 0970559970 le 23/04/2015 a 16:26:07") in new stack [Apr 23 16:26:07] -- Executing [send@fax-envoi:5] Set("SIP/1003-00000000", "FAXOPT(localstationid)=0970559970") in new stack [Apr 23 16:26:07] -- Executing [send@fax-envoi:6] Set("SIP/1003-00000000", "FAXOPT(maxrate)=14400") in new stack [Apr 23 16:26:07] -- Executing [send@fax-envoi:7] Set("SIP/1003-00000000", "FAXOPT(minrate)=2400") in new stack [Apr 23 16:26:07] -- Executing [send@fax-envoi:8] SendFAX("SIP/1003-00000000", "/var/www/html/centrex/datas/fax/tiff/553900f4b7333-scan11.tiff") in new stack [Apr 23 16:26:07] ERROR[30340]: res_fax.c:2121 sendfax_exec: 'modems' setting 'V17,V27,V29' is incompatible with 'minrate' setting 2400 [Apr 23 16:26:07] == Spawn extension (fax-envoi, send, 8) exited non-zero on 'SIP/1003-00000000' {noformat} Additional info : {noformat} centrex-preprod*CLI> fax show settings FAX For Asterisk Settings: ECM: Enabled Status Events: On Minimum Bit Rate: 4800 Maximum Bit Rate: 14400 Modem Modulations Allowed: V17,V27,V29 FAX Technology Modules: DIGIUM (Digium FAX Driver) Settings: Maximum T.38 Packet Delay: 800 T.38 Session Packet Capture: Off G.711 Session Audio Capture: Off centrex-preprod*CLI> module show like fax Module Description Use Count res_fax.so Generic FAX Applications 1 res_fax_digium.so Digium G.711 and T.38 FAX Technologies ( 0 2 modules loaded {noformat} | ||||||
Comments: | By: Cedric BASSAGET (rico29) 2015-04-23 09:34:37.342-0500 I just found that if I remove exten => send,n,Set(FAXOPT(maxrate)=14400) exten => send,n,Set(FAXOPT(minrate)=2400) I don't get the error. My bad... but can it be considered like a regression ? By: Matt Jordan (mjordan) 2015-04-24 12:08:37.820-0500 It isn't a regression. You are setting the {{minrate}} explicitly to {{2400}}, which *is* incompatible with V29. |