Summary: | ASTERISK-12723: [patch] Asterisk 1.6.0-rc6 crashes with ReceiveFAX | ||
Reporter: | genie (genie) | Labels: | |
Date Opened: | 2008-09-12 13:12:10 | Date Closed: | 2008-11-19 12:28:11.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Applications/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20080916__bug13473.diff.txt ( 1) configure.rej | |
Description: | I'm trying to receive a fax message sent by Zoiper 2.16. Following instructions on webapges I have edited the follwoing configuratin files: ===SIP.CONF=== [general] t38pt_udptl = yes [1000] type=friend context=fax_context host=dynamic allow=all t38pt_udptl = yes ===EXTENSIONS.CONF=== [fax_context] exten => 300,1,Verbose(Receiving....) exten => 300,n,ReceiveFAX(fax.sff) exten => 300,n,Hangup() exten => h,1,Verbose(Received) exten => h,n,Noop(FAXSTATUS = ${FAXSTATUS}) Unfortunatelly, when I try to send a fex asterisk crashes completely: i need to strat it again by typing "sodo asterisk" and then "sodo asterisk -r" to enter the console. On the asterisk console I have only following information Connected to Asterisk 1.6.0-rc6 currently running on durotar (pid = 15529) Verbosity was 0 and is now 28 == Using SIP RTP CoS mark 5 == Using UDPTL CoS mark 5 -- Executing [300@fax_context:1] Verbose("SIP/1000-082587e8", "Receiving....") in new stack Obierze czy nie.... -- Executing [300@fax_context:2] ReceiveFAX("SIP/1000-082587e8", "fax.sff") in new stack durotar*CLI> Disconnected from Asterisk server Executing last minute cleanups | ||
Comments: | By: genie (genie) 2008-09-12 13:14:45 Ohhh... I forgot to mention tha I'm using spandsp-0.0.5pre4 By: snuffy (snuffy) 2008-09-12 16:16:43 This is not enough information. We need to see a backtrace if your unsure how to please follow the guide in doc/backtrace.txt By: genie (genie) 2008-09-14 17:23:36 Hi snuffy! I followed doc/backtrace.txt (comiled with DONT_OPTIMIZE, run asterisk with -g, crashed again) but no "core.*" file was created in my /tmp/ directory. Fortunately, on the conole I got a new information just before the crash: " -- Executing [300@fax_context:2] ReceiveFAX("SIP/1000-082407f0", "fax.sff") in new stack /usr/sbin/asterisk: symbol lookup error: /usr/lib/asterisk/modules/app_fax.so: undefined symbol: t38_terminal_init" Hope it will help. If not, do you know what's wrong with my core dumping? By: Tilghman Lesher (tilghman) 2008-09-16 10:43:14 Yes; it tells me that you have the wrong version of spandsp installed. However, we should check for that symbol during the configure stage, so I'm going to create a patch for this purpose. By: genie (genie) 2008-09-16 10:48:53 spandsp-0.0.5 is required by Astersik and I have spandsp-0.0.5pre4(the newest) installed. On the spandsp webpage there are four 0.0.5 verisons: spandsp-0.0.5pre2 spandsp-0.0.5pre3 spandsp-0.0.5pre4 Which should be installed? By: genie (genie) 2008-09-16 11:37:06 wenn I tried to apply the patch abbove (20080916__bug13473.diff.txt ) by the command "wget 'http://bugs.digium.com/file_download.php?file_id=20142&type=bug' -O - | patch -p0" i got: patching file configure Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] so when I press 'y' I still can successfully do './configure' and get at the end: configure: creating ./config.status config.status: creating build_tools/menuselect-deps config.status: creating makeopts config.status: creating channels/h323/Makefile config.status: creating include/asterisk/autoconfig.h .$$$$$$$$$$$$$$$=.. .$7$7.. .7$$7:. .$$:. ,$7.7 .$7. 7$$$$ .$$77 ..$$. $$$$$ .$$$7 ..7$ .?. $$$$$ .?. 7$$$. $.$. .$$$7. $$$$7 .7$$$. .$$$. .777. .$$$$$$77$$$77$$$$$7. $$$, $$$~ .7$$$$$$$$$$$$$7. .$$$. .$$7 .7$$$$$$$7: ?$$$. $$$ ?7$$$$$$$$$$I .$$$7 $$$ .7$$$$$$$$$$$$$$$$ :$$$. $$$ $$$$$$7$$$$$$$$$$$$ .$$$. $$$ $$$ 7$$$7 .$$$ .$$$. $$$$ $$$$7 .$$$. 7$$$7 7$$$$ 7$$$ $$$$$ $$$ $$$$7. $$ (TM) $$$$$$$. .7$$$$$$ $$ $$$$$$$$$$$$7$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$. configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : i686 configure: build-cpu:vendor:os: i686 : pc : linux-gnu : configure: host-cpu:vendor:os: i686 : pc : linux-gnu : although while doing './configure' i got: checking for t38_terminal_init in -lspandsp... no By: Tilghman Lesher (tilghman) 2008-09-16 12:20:33 Now, if you do a 'make menuselect', app_fax should be XXX'ed out (until you install the version of spandsp which has t38_terminal_init and rerun configure). By: genie (genie) 2008-09-18 07:08:50 problem with patch: while patching i got: _____________ xxxxx@xxxxxx:/usr/src/asterisk-1.6.0-rc6$ wget 'http://bugs.digium.com/file_download.php?file_id=20142&type=bug' -O - | patch -p0 --13:58:38-- http://bugs.digium.com/file_download.php?file_id=20142&type=bug => `-' Resolving bugs.digium.com... 216.27.40.102 Connecting to bugs.digium.com|216.27.40.102|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] [ <=> ] 10,426 46.26K/s 13:58:39 (46.16 KB/s) - `-' saved [10426] patching file configure Reversed (or previously applied) patch detected! Assume -R? [n] y Hunk #3 FAILED at 39812. 1 out of 3 hunks FAILED -- saving rejects to file configure.rej patching file configure.ac ______________ I've uploaded the configure.rej file. There is still problem with all the spandsp-0.0.5: spandsp-0.0.5pre2 - is installed as spandsp-0.0.4 so fax.app is not installed by asterisk spandsp-0.0.5pre3 - fax app can be compiled but astersik crashes when trying to send a fax spandsp-0.0.5pre4 - fax app can be compiled but astersik crashes when trying to send a fax By: Carlos Alvarez (calvarez) 2008-09-30 18:39:42 I am facing the same issue. I am unable to find a version of Spandsp with the required t38_terminal_init, though the responses above imply that this is available. The latest I've found is 0.0.5pre4, which is what I'm using. Is there a source for the fixed version or other work-around? By: Dmitry Andrianov (dimas) 2008-10-28 18:23:37 SpanDSP 0.0.5pre4 works fine. I bet you guys have multiple versions of SpanDSP installed on your machines possibly at different locations. So you can compile fine with one of them while actual loading of library picks up another one (old) and Asterisk crashes - just type locate libspandsp.so and see what directories in addition to /usr/local/lib and the directory where spandsp was built contains it. I personally would remove all instances of spandsp libraries before installing new. Something like rm /lib/libspandsp* /usr/lib/libspandsp* /usr/local/lib/libspandsp* USE AT YOUR OWN RISK! By: Digium Subversion (svnbot) 2008-11-19 12:28:10.000-0600 Repository: asterisk Revision: 157784 U trunk/configure U trunk/configure.ac ------------------------------------------------------------------------ r157784 | tilghman | 2008-11-19 12:28:09 -0600 (Wed, 19 Nov 2008) | 6 lines Add check for t38_terminal_init in spandsp (not found in 0.0.6, so it should fail reasonably) (closes issue ASTERISK-12723) Reported by: genie Patches: 20080916__bug13473.diff.txt uploaded by Corydon76 (license 14) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=157784 |