[asterisk-bugs] [Asterisk 0019230]: pbx_lua hangs on faxdetect

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 10 18:58:49 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19230 
====================================================================== 
Reported By:                Cyberax
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19230
Category:                   PBX/pbx_lua
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.8.4-rc3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-05-04 13:29 CDT
Last Modified:              2011-05-10 18:58 CDT
====================================================================== 
Summary:                    pbx_lua hangs on faxdetect
Description: 
pbx_lua module deadlocks on faxdetect. The last lines from the log are:
==========
[May  4 21:04:50] DEBUG[18412]: dsp.c:590 tone_detect: 1100 Hz done
detected
[May  4 21:04:50] DEBUG[18412]: chan_sip.c:6954 sip_rtp_read: Fax CNG
detected on SIP/datagroup-in-00000000
[May  4 21:04:50] DEBUG[18412]: pbx_lua.c:1283 lua_find_extension: Looking
up fax at from-kharkov:1
==========

The relevant section of extensions.lua is:
==========
extensions = {
    ["from-kharkov"] = {
        ["fax"] = function()
            app.DumpChan() -- This never happens
            app.ReceiveFax("/tmp/test.tiff")
        end;

        ["s"] = function()
            app.answer()
            app.dial("SIP/1602","30","gkt")
            app.hangup()
        end;
    };
};
==========

====================================================================== 

---------------------------------------------------------------------- 
 (0134775) Cyberax (reporter) - 2011-05-10 18:58
 https://issues.asterisk.org/view.php?id=19230#c134775 
---------------------------------------------------------------------- 
Curiously, it doesn't happen on a version without optimizations (it still
happens on a version from packages.asterisk.org, I've double-checked).
Also, it sometimes doesn't happen if sipdebug is turned off.

So it's a race condition somewhere, I'll try to catch it with gdb. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-10 18:58 Cyberax        Note Added: 0134775                          
======================================================================




More information about the asterisk-bugs mailing list