[asterisk-bugs] [JIRA] (ASTERISK-20919) Unable to send or receive faxes with Asterisk 11 using res_fax and spandsp-0.0.6 (Tar ball spandsp-20120415)

Jonathan Rose (JIRA) noreply at issues.asterisk.org
Tue Jan 22 15:36:58 CST 2013


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

Jonathan Rose commented on ASTERISK-20919:
------------------------------------------

Hey Nitesh, I was looking at the test you included and noticed a couple external perl scripts that weren't included with your attachments, particularly utils/agi_load_balance_emulator.pl and utils/vcc_emulator.pl.  I'm not entirely sure what the function of either of these scripts is, but do you think this test would effectively demonstrate your bug and the efficacy of your patch without these dependencies?  If not, do you think you could rework the test to not use the perl subprocesses and instead rely on something within python to perform the necessary checks you are wanting to observe?

I've already checked the patch and it seems correct from what I've tested.
                
> Unable to send or receive faxes with Asterisk 11 using res_fax and spandsp-0.0.6 (Tar ball spandsp-20120415)
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20919
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20919
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_fax_spandsp
>    Affects Versions: SVN
>         Environment: Debian Squeeze x86_64
>            Reporter: NITESH BANSAL
>         Attachments: AST_RECEIVER.tar.gz, AST_SENDER.tar.gz, patch_ast_fax_spandsp.patch, run-test
>
>
> Hello,
> I tried to test a basic T38 test case, using res_fax and spandsp.
> I am using 2 Asterisk instances - 1 for sending the fax and other one for receiving the fax.
> I observed that fax is failing. After enabling the debug option in both SendFAX and ReceiveFAX, i noticed that tx_packet_handler function call in SPANDSP is failing. This function calls translates into  t38_tx_packet_handler in res_fax_spandsp. This function is returning -1 if the following IF check isn't true:
> "if (s->details->caps & AST_FAX_TECH_GATEWAY) {"
> This check isn't true when Asterisk isn't running as a gateway and infact acting as an end point.
> I simuated this case using Asterisk test suite framework. I am attached the run_test script.
> In addition, i am attaching the sip.conf,extensions.conf of sending asterisk and sip.conf of the receiving Asterisk.
> On the receiving asterisk, dialplan simply consist of Answer() followed by ReceiveFAX.
> I have also attached the logs of Asterisk on both sides.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list