Re: [asterisk-users] AMI status events with res_fax_spandsp.so
>>> Is anyone else using the AMI with res_fax_spandsp.so for real-time status? >> >> As far as I can tell there is no way to get worthwhile status/progress >> information from AMI when using spandsp. >> >> Neil Youngman > >Thanks, I figured that was the case but wanted to be sure I hadn’t missed a >configuration option or something else. For anyone else who might be stuck on Asterisk 11 for the moment I have attached the patch I used which back ports the various Fax status actions and events from Asterisk 13. It is based off of this commit https://github.com/asterisk/asterisk/commit/5c988cc4e6c5693f03080f88e3057cb7a5358597 Steven Wheeler res_fax_5c988cc4e6c5693f03080f88e3057cb7a5358597.patch Description: res_fax_5c988cc4e6c5693f03080f88e3057cb7a5358597.patch -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] AMI status events with res_fax_spandsp.so
>> Is anyone else using the AMI with res_fax_spandsp.so for real-time status? > > As far as I can tell there is no way to get worthwhile status/progress > information from AMI when using spandsp. > >> I am working on migrating a FAX application from res_fax_digium.so to >> res_fax_spandsp.so. I have noticed that the spandsp module generates far >> fewer AMI status events than the Digium module and the generated events >> contain less information. For example when sending a fax there is no longer >> an event for every page. There are just a few FaxStatus events at the >> beginning and a couple at the end but they don’t contain many details. I can >> pull the required information from the Asterisk console by running fax show >> session but that output isn’t suitable for parsing. > > The only way I have found to follow fax progress is to configure the logs to > include fax debug and "tail" the logs. ECM fax will produce log messages like > "res_fax.c: FLOW T.30 Starting page 2 of transfer". > Non-ECM fax does not produce any page information as far as I can see. > > Neil Youngman Thanks, I figured that was the case but wanted to be sure I hadn’t missed a configuration option or something else. Steven Wheeler -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] AMI status events with res_fax_spandsp.so
Is anyone else using the AMI with res_fax_spandsp.so for real-time status? I am working on migrating a FAX application from res_fax_digium.so to res_fax_spandsp.so. I have noticed that the spandsp module generates far fewer AMI status events than the Digium module and the generated events contain less information. For example when sending a fax there is no longer an event for every page. There are just a few FaxStatus events at the beginning and a couple at the end but they don’t contain many details. I can pull the required information from the Asterisk console by running fax show session but that output isn’t suitable for parsing. There doesn’t seem to be a great deal of information about res_fax_spandsp.so via Google. FaxStatus with res_fax_spandsp.so Event: FAXStatus Privilege: call,all Operation: send Status: FAX Transmission In Progress Channel: Local/1952253@from-internal-user-0001;1 Context: send_fax Exten: s CallerID: 1763210 LocalStationID: 1763210 FileName: /tmp/faxes/1526583220391_merged.tiff FaxStatus with res_fax_digium.so Event: FaxStatus Privilege: call,all Channel: Local/1952253@from-internal-user-0001;1 FAX Session: 1 Operating Mode: FAX_TRANSMITTING Result: RSLT_IN_PROGRESS Error: NO_ERROR Call Duration: 12.088 ECM Mode: yes Data Rate: 14400 Image Resolution: 204x196 Image Encoding: ENC_MMR Page Size: LT Document Number: 1 Page Number: 1 File Name: '/tmp/faxes/1526583612555_merged.tiff' Tx Pages: 0 Tx Bytes: 512 Total Tx Lines: 0 Rx Pages: 0 Rx Bytes: 0 Total Rx Lines: 0 Total Bad Lines: 0 DIS/DCS/DTC/CTC Count: 2 CFR Count: 1 FTT Count: 0 MCF Count: 0 PPR Count: 0 RTN Count: 0 DCN Count: 0 Remote StationID: '952253 ' I am using options dfzs with the SendFAX application on Asterisk 11.6-cert18. Steven Wheeler -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users