[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:all-tabpanel ]

Matt Jordan closed ASTERISK-15732.
----------------------------------

    Resolution: Suspended

> 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