[asterisk-bugs] [JIRA] (ASTERISK-15732) app_fax exits with returncode -1, transmission error, although fax is sent correctly, AGI aborts execution

Matt Jordan (JIRA) noreply at issues.asterisk.org
Wed Feb 25 22:21:34 CST 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-15732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225142#comment-225142 ] 

Matt Jordan commented on ASTERISK-15732:
----------------------------------------

Per the Asterisk versions page [1], the maintenance (bug fix) support for the Asterisk branch you are using has ended. For continued maintenance support please move to a supported branch of Asterisk. After testing with a supported branch, if you find this problem has not been resolved, please open a new issue against the latest version of that Asterisk branch.

Thanks!

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions

Please note that {{app_fax}} is an extended support module. The preferred Fax applications to use are now provided by {{res_fax}}. You may want to use that module, as issues reported against {{app_fax}} are unlikely to receive the same amount of attention.

> app_fax exits with returncode -1, transmission error, although fax is sent correctly, AGI aborts execution
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-15732
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-15732
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Applications/app_fax
>            Reporter: chrisde
>            Severity: Minor
>         Attachments: faxagidebug.txt, faxlogcomplete.txt
>
>
> After several tests I figured out a problem with app_fax and probably another problem with AGI.
> First, as can be seen in the logs, app_fax always terminates with
> app_fax.c:764 transmit: Transmission error
> Although the fax always goes through and is received correctly by the remote fax. As can be seen in the logs the remote side sends a sip 'BYE' message (probably because the fax has gone through?). Probably this is not correclty handled by app_fax and causes the transmission error?
> This is the first part of the problem. The second part is that app_fax then returns '-1'. This causes the AGI script to be aborted. This is very bad behavior since then it is not possible to handle further processing (read variables set by app_fax like 'FAXSTATUS', 'FAXPAGES', etc.).
> In some cases of my trials (also with old phpagi 1.6 instead of 2.14) the AGI script had not been terminated immediately but continued making the next steps (read variables). There I saw that return value of app_fax was also FAXSTATUS=SUCCESS.
> So I think this time there is really something wrong with app_fax.c and not in spandsp. And also the way res_agi.c handles returnvalues in case of 'EXEC' could be wrong OR app_fax should never return '-1' to cause the agi script to be aborted.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list