[Home]

Summary:ASTERISK-15365: Asterisk Crashes when a fax comes in over nvfaxdetect
Reporter:mejor (mejor)Labels:
Date Opened:2009-12-23 15:30:13.000-0600Date Closed:2009-12-28 09:55:34.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Addons/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I was on asterisk 1.6.1.1 and upgraded to asterisk 1.6.1.12. I reinstalled spandsp and it kept reverting me back to 1.6.1.1. Now I have 1.6.1.12 installed and spandsp (I think). I verified the app_nv_faxdetect is showing up in asterisk. Anytime a fax is comming inbound wether it be over SIP or a pots line asterisk crashes with the following:

[2009-12-23 15:14:17] VERBOSE[6444] chan_dahdi.c:     -- Starting simple switch on 'DAHDI/1-1'
[2009-12-23 15:14:21] NOTICE[6444] chan_dahdi.c: Got event 18 (Ring Begin)...
[2009-12-23 15:14:23] NOTICE[6444] chan_dahdi.c: Got event 2 (Ring/Answered)...
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@from-pstn:1] Set("DAHDI/1-1", "__FROM_DID=s") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@from-pstn:2] Gosub("DAHDI/1-1", "cidlookup,cidlookup_1,1") in new stack
[2009-12-23 15:14:23] VERBOSE[6446] manager.c:   == Manager 'admin' logged on from 127.0.0.1
[2009-12-23 15:14:23] VERBOSE[6446] manager.c:   == Manager 'admin' logged off from 127.0.0.1
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [cidlookup_1@cidlookup:1] Set("DAHDI/1-1", "CALLERID(name)=USER") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [cidlookup_1@cidlookup:2] Return("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@from-pstn:3] Gosub("DAHDI/1-1", "app-blacklist-check,s,1") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/1-1", "0?blacklisted") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@app-blacklist-check:2] Set("DAHDI/1-1", "CALLED_BLACKLIST=1") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@app-blacklist-check:3] Return("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@from-pstn:4] ExecIf("DAHDI/1-1", "0 ?Set(CALLERID(name)=3145551856)") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@from-pstn:5] Set("DAHDI/1-1", "FAX_RX=system") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@from-pstn:6] Set("DAHDI/1-1", "FAX_RX_EMAIL=fax@goinet.com") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@from-pstn:7] Answer("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@from-pstn:8] PlayTones("DAHDI/1-1", "ring") in new stack
[2009-12-23 15:14:23] VERBOSE[6444] pbx.c:     -- Executing [s@from-pstn:9] NVFaxDetect("DAHDI/1-1", "6|t") in new stack
[2009-12-23 15:14:23] WARNING[6444] pbx.c: The application delimiter is now the comma, not the pipe.  Did you forget to convert your dialplan?  (NVFaxDetect(6|t))
[2009-12-23 15:14:23] DEBUG[6444] app_nv_faxdetect.c: Preparing detect of fax (waitdur=6ms, sildur=1000ms, mindur=100ms, maxdur=-1ms)
[2009-12-23 15:14:27] DEBUG[6444] app_nv_faxdetect.c: Fax detected on DAHDI/1-1
[2009-12-23 15:14:27] NOTICE[6444] app_nv_faxdetect.c: Redirecting DAHDI/1-1 to fax extension
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing [fax@from-pstn:1] Goto("DAHDI/1-1", "ext-fax,in_fax,1") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Goto (ext-fax,in_fax,1)
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing [in_fax@ext-fax:1] StopPlayTones("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing [in_fax@ext-fax:2] GotoIf("DAHDI/1-1", "1?3:analog_fax,1") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Goto (ext-fax,in_fax,3)
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing [in_fax@ext-fax:3] Macro("DAHDI/1-1", "faxreceive") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing [s@macro-faxreceive:1] Set("DAHDI/1-1", "FAXFILE=/var/spool/asterisk/fax/1261602857.6.tif") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing [s@macro-faxreceive:2] Set("DAHDI/1-1", "EMAILADDR=fax@goinet.com") in new stack
[2009-12-23 15:14:27] VERBOSE[6444] pbx.c:     -- Executing [s@macro-faxreceive:3] ReceiveFAX("DAHDI/1-1", "/var/spool/asterisk/fax/1261602857.6.tif") in new stack
[2009-12-23 15:14:27] NOTICE[6444] channel.c: Dropping incompatible voice frame on DAHDI/1-1 of format slin since our native format has changed to 0x4 (ulaw)
*** glibc detected *** /usr/sbin/asterisk: corrupted double-linked list: 0xb77f8d40 ***
======= Backtrace: =========
/lib/libc.so.6[0x5fac1e]
/lib/libc.so.6(cfree+0x90)[0x5fe1e0]
/usr/sbin/asterisk[0x80cc15a]
/lib/libpthread.so.0[0x70ab7c]
/lib/libpthread.so.0[0x70b469]
/lib/libc.so.6(clone+0x5e)[0x662e5e]
======= Memory map: ========
00110000-00119000 r-xp 00000000 fd:00 30179369   /lib/libnss_files-2.5.so
00119000-0011a000 r-xp 00008000 fd:00 30179369   /lib/libnss_files-2.5.so
0011a000-0011b000 rwxp 00009000 fd:00 30179369   /lib/libnss_files-2.5.so
0011b000-0011f000 r-xp 00000000 fd:00 7998468    /usr/lib/asterisk/modules/res_indications.so
0011f000-00120000 rwxp 00003000 fd:00 7998468    /usr/lib/asterisk/modules/res_indications.so
00120000-00127000 r-xp 00000000 fd:00 7998472    /usr/lib/asterisk/modules/res_phoneprov.so
00127000-00128000 rwxp 00006000 fd:00 7998472    /usr/lib/asterisk/modules/res_phoneprov.so
00128000-0012e000 r-xp 00000000 fd:00 7998470    /usr/lib/asterisk/modules/res_monitor.so


001a3000-001a5000 r-xp 00000000 fd:00 7998348    /usr/lib/asterisk/modules/app_exec.so
001a5000-001a6000 rwxp 00001000 fd:00 7998348    /usr/lib/asterisk/modules/app_exec.so
001a6000-001a7000 r-xp 001a6000 00:00 0          [vdso]
001a7000-001c1000 r-xp 00000000 fd:00 7998321    /usr/lib/asterisk/modules/chan_unistim.so
001c1000-001c2000 rwxp 0001a000 fd:00 7998321    /usr/lib/asterisk/modules/chan_unistim.so
001c2000-001c4000 r-xp 00000000 fd:00 7998338    /usr/lib/asterisk/modules/app_dahdiras.so
001c4000-001c5000 rwxp 00002000 fd:00 7/usr/sbin/safe_asterisk: line 146:  6340 Aborted                 (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk ended with exit status 134
Asterisk exited on signal 6.
cat: /var/run/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
[2009-12-23 15:14:36] WARNING[6444] app_fax.c: Error transmitting fax. result=5: The HDLC carrier did not stop in a timely manner.
[2009-12-23 15:14:36] WARNING[6444] app_fax.c: Transmission failed
[2009-12-23 15:14:36] VERBOSE[6444] pbx.c:     -- Executing [in_fax@ext-fax:4] Hangup("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:36] VERBOSE[6444] pbx.c:   == Spawn extension (ext-fax, in_fax, 4) exited non-zero on 'DAHDI/1-1'
[2009-12-23 15:14:36] VERBOSE[6444] pbx.c:     -- Executing [h@ext-fax:1] System("DAHDI/1-1", "/var/lib/asterisk/bin/fax-process.pl --to fax@goinet.com --from fax@asterisk.goinet.com --dest "s" --subject "Fax from 3144361818 GOINET%20INC" --attachment fax_3144361818.pdf --type application/pdf --file /var/spool/asterisk/fax/1261602857.6.tif") in new stack
[2009-12-23 15:14:36] VERBOSE[6444] pbx.c:     -- Executing [h@ext-fax:2] Hangup("DAHDI/1-1", "") in new stack
[2009-12-23 15:14:36] VERBOSE[6444] pbx.c:   == Spawn extension (ext-fax, h, 2) exited non-zero on 'DAHDI/1-1'
[2009-12-23 15:14:36] VERBOSE[6444] chan_dahdi.c:     -- Hungup 'DAHDI/1-1'
mpg123: no process killed
[2009-12-23 15:14:40] VERBOSE[6462] logger.c:  Asterisk Event Logger Started /var/log/asterisk/event_log
[2009-12-23 15:14:40] VERBOSE[6462] loader.c:  Asterisk Dynamic Loader Starting:
[2009-12-23 15:14:40] VERBOSE[6462] config.c:   == Parsing '/etc/asterisk/modules.conf': [2009-12-23 15:14:40] VERBOSE[6462] config.c:   == Found
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered action Ping
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered action Events
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered action Logoff
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered action Login
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered action Challenge
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered action Hangup
[2009-12-23 15:14:40] VERBOSE[6462] manager.c:   == Manager registered action Status


Am I doing something else wrong?
Comments:By: Tilghman Lesher (tilghman) 2009-12-28 09:53:14.000-0600

NVFaxDetect is an external application, not distributed with Asterisk.  Please file your issue with the author of that application.