Summary: | ASTERISK-15343: after udp error sip phones get kicked | ||
Reporter: | Hendrik van der Ploeg (elsto) | Labels: | |
Date Opened: | 2009-12-21 06:28:59.000-0600 | Date Closed: | 2010-02-02 16:33:02.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_sip/T.38 |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) debug-crash.txt ( 1) stacktrace-20091222-1242central.txt ( 2) t38.log | |
Description: | I get the following error message; udptl.c:766 calculate_far_max_ifp: (no tag): Cannot calculate far_max_ifp before far_max_datagram has been set. udptl.c:725 calculate_local_max_datagram: (SIP/0887865299): Cannot calculate local_max_datagram before local_max_ifp has been set astobj2.c:116 INTERNAL_OBJ: bad magic number 0x0 for 0x227bfb8 The fax does arrive at the destination, but strangely all my sip phones get kicked and unregister. I have to restart asterisk do get the sip phones back to register I've set in sip.conf under global; t38pt_udptl = yes,fec,maxdatagram=400 | ||
Comments: | By: Leif Madsen (lmadsen) 2009-12-21 08:55:16.000-0600 Can you provide the entire console and debugging output when this is happening? Also, please provide the devices involved so a developer can better determine how to handle this. By: Hendrik van der Ploeg (elsto) 2009-12-21 09:02:34.000-0600 I upload a logfile. For faxing we only use software. Hylafax => T38Modem (with SIP support) => Asterisk => VOIP provider. The phones which get kicked are Aastra's type 53i & 31i By: Andrew Apostoljuk (apostol) 2009-12-21 09:54:09.000-0600 I have the same problem but with device Addpac AP200B Asterisk version 1.6.0.20 But my asterisk crash after receiving answer on INVITE message Asterisk 1.6.0.19 T38 with AP200B has problem with T38FaxMaxBuffer = 0 Asterisk 1.6.0.10 with AP200B works fine. By: George Sweetnam (geokill) 2009-12-21 14:58:53.000-0600 I uploaded a debug crash from our asterisk system - version 1.6.1.12 Receive_fax is pointed to a file and a script to email it. While the we haven't had a working fax service due to our sip provider, it has never crashed asterisk when one of our old fax numbers is called. I updated to the new version this morning and when the first call arrived we received this in the console: ########## -- Executing [3987@fax-in:12] Wait("SIP/pacwest-00000069", "2") in new stack -- Executing [3987@fax-in:13] ReceiveFAX("SIP/pacwest-00000069", "/var/spool/fax_in/fax_20091221-142357-8001119999.tiff") in new stack [Dec 21 14:23:59] WARNING[13078]: udptl.c:766 calculate_far_max_ifp: (no tag): Cannot calculate far_max_ifp before far_max_datagram has been set. asterisksserver*CLI> Disconnected from Asterisk server ########## I have turned debugging and verbosity to 10 and peer debugging. Also I have redirected the fax numbers to point at our sipura 2102 to see if that makes a difference (doubt it). While typing this another arrived and crashed it again. I've disabled the phone numbers we get faxes on. Outbound fax via a sipura module works normally. Please see "debug-crash.txt" for the capture of it. By: Leif Madsen (lmadsen) 2009-12-21 16:54:38.000-0600 Updating severity to crash. By: Leif Madsen (lmadsen) 2009-12-21 16:55:06.000-0600 Any chance you could provide a backtrace from the crash(es)? By: George Sweetnam (geokill) 2009-12-22 12:47:31.000-0600 gdb bt full attached now. Sorry for the delay let me know if you need anything further. By: David Vossel (dvossel) 2010-01-11 21:12:14.000-0600 geokill, thanks for the backtrace. It looks like you may have not compiled with don't optimize enabled. Please run make menuselect and enable don't optimize, this is an option under compile flags I believe. After compiling with don't optimize please update the issue with a new gdb output of the crash. Without this it is difficult to tell anything from the gdb output because all the values are missing. Thanks! By: Digium Subversion (svnbot) 2010-02-02 16:27:27.000-0600 Repository: asterisk Revision: 244443 U trunk/channels/chan_sip.c U trunk/include/asterisk/udptl.h U trunk/main/udptl.c ------------------------------------------------------------------------ r244443 | dvossel | 2010-02-02 16:27:24 -0600 (Tue, 02 Feb 2010) | 18 lines fixes crash during T.38 negotiation caused by invalid or missing FaxMaxDatagram field AST-2010-001 (closes issue ASTERISK-15457) Reported by: krn (closes issue ASTERISK-15538) Reported by: barthpbx (closes issue ASTERISK-15371) Reported by: bklang (closes issue ASTERISK-15343) Reported by: elsto ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=244443 By: Digium Subversion (svnbot) 2010-02-02 16:29:42.000-0600 Repository: asterisk Revision: 244445 _U branches/1.6.2/ U branches/1.6.2/channels/chan_sip.c U branches/1.6.2/include/asterisk/udptl.h U branches/1.6.2/main/udptl.c ------------------------------------------------------------------------ r244445 | dvossel | 2010-02-02 16:29:38 -0600 (Tue, 02 Feb 2010) | 23 lines Merged revisions 244443 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r244443 | dvossel | 2010-02-02 16:27:23 -0600 (Tue, 02 Feb 2010) | 18 lines fixes crash during T.38 negotiation caused by invalid or missing FaxMaxDatagram field AST-2010-001 (closes issue ASTERISK-15457) Reported by: krn (closes issue ASTERISK-15538) Reported by: barthpbx (closes issue ASTERISK-15371) Reported by: bklang (closes issue ASTERISK-15343) Reported by: elsto ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=244445 By: Digium Subversion (svnbot) 2010-02-02 16:31:35.000-0600 Repository: asterisk Revision: 244446 _U branches/1.6.1/ U branches/1.6.1/channels/chan_sip.c U branches/1.6.1/include/asterisk/udptl.h U branches/1.6.1/main/udptl.c ------------------------------------------------------------------------ r244446 | dvossel | 2010-02-02 16:31:30 -0600 (Tue, 02 Feb 2010) | 23 lines Merged revisions 244443 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r244443 | dvossel | 2010-02-02 16:27:23 -0600 (Tue, 02 Feb 2010) | 18 lines fixes crash during T.38 negotiation caused by invalid or missing FaxMaxDatagram field AST-2010-001 (closes issue ASTERISK-15457) Reported by: krn (closes issue ASTERISK-15538) Reported by: barthpbx (closes issue ASTERISK-15371) Reported by: bklang (closes issue ASTERISK-15343) Reported by: elsto ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=244446 By: Digium Subversion (svnbot) 2010-02-02 16:33:01.000-0600 Repository: asterisk Revision: 244447 _U branches/1.6.0/ U branches/1.6.0/channels/chan_sip.c U branches/1.6.0/include/asterisk/udptl.h U branches/1.6.0/main/udptl.c ------------------------------------------------------------------------ r244447 | dvossel | 2010-02-02 16:32:56 -0600 (Tue, 02 Feb 2010) | 23 lines Merged revisions 244443 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r244443 | dvossel | 2010-02-02 16:27:23 -0600 (Tue, 02 Feb 2010) | 18 lines fixes crash during T.38 negotiation caused by invalid or missing FaxMaxDatagram field AST-2010-001 (closes issue ASTERISK-15457) Reported by: krn (closes issue ASTERISK-15538) Reported by: barthpbx (closes issue ASTERISK-15371) Reported by: bklang (closes issue ASTERISK-15343) Reported by: elsto ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=244447 |