Summary: | ASTERISK-00881: kphone 4 crashes asterisk with subscribe message | ||
Reporter: | wkv (wkv) | Labels: | |
Date Opened: | 2004-01-20 02:44:45.000-0600 | Date Closed: | 2008-01-15 14:43:07.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Using CVS checkout from 2004-01-19, trying the OReilly simple sip setup however trying to find a software linux client. The from address is bogus however I don't think the server should crash with it. ****** ADDITIONAL INFORMATION ****** Sip read: SUBSCRIBE sip:2999@boombox:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.120.123;rport CSeq: 4460 SUBSCRIBE To: <sip:2999@boombox:5060> Expires: 600 From: <>;tag=1EF9EC2F Call-ID: 198419334@192.168.120.123 Content-Length: 0 User-Agent: kphone/4.0 Event: presence Accept: application/xpidf+xml Max-Forwards: 2 Contact: "William K. Volkman" <sip:wkv@192.168.120.123;transport=udp> 13 headers, 0 lines Using latest SUBSCRIBE request as basis request Sending to 192.168.120.123 : 5060 (non-NAT) Jan 20 01:14:29 NOTICE[1125350192]: chan_sip.c:4034 check_user: From address missing 'sip:', using it anyway Segmentation fault (core dumped) [root@boombox root]# gdb /usr/sbin/asterisk core.4139 GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... Core was generated by `asterisk -vvvvgc'. Program terminated with signal 11, Segmentation fault. (gdb) info stack #0 0x42079743 in strchr () from /lib/tls/libc.so.6 #1 0x41bae1c8 in _fini () from /usr/lib/asterisk/modules/chan_sip.so #2 0x41b9e767 in handle_request (p=0x8117fe8, req=0x43137198, sin=0x43137188, recount=0x0) at chan_sip.c:5354 #3 0x41b995fe in sipsock_read (id=0x80f4620, fd=9, events=1, ignore=0x0) at chan_sip.c:5479 #4 0x08051790 in ast_io_wait (ioc=0x80f2368, howlong=0) at io.c:267 ASTERISK-1 0x41b959a4 in do_monitor (data=0x0) at chan_sip.c:5584 ASTERISK-2 0x40032484 in start_thread () from /lib/tls/libpthread.so.0 (gdb) | ||
Comments: | By: Brian West (bkw918) 2004-01-20 11:10:33.000-0600 Asterisk doesn't support subscribe.. hrm By: ww (ww) 2004-01-20 14:00:53.000-0600 there is logic to handle subscribe messages... but the From header in the message send by kphone is suspicious... will try to duplicate... By: Brian West (bkw918) 2004-02-07 00:07:44.000-0600 Fixed in CVS By: Digium Subversion (svnbot) 2008-01-15 14:43:06.000-0600 Repository: asterisk Revision: 2138 U trunk/Makefile U trunk/channels/chan_sip.c U trunk/configs/mgcp.conf.sample U trunk/manager.c ------------------------------------------------------------------------ r2138 | markster | 2008-01-15 14:43:05 -0600 (Tue, 15 Jan 2008) | 5 lines Insert blank after REFER (bug ASTERISK-991) Correct path to VM sample (bug ASTERISK-988) Make manager interface non-blocking (bug ASTERISK-855) Don't bork on empty from in SIP (bug ASTERISK-881) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=2138 By: Digium Subversion (svnbot) 2008-01-15 14:43:07.000-0600 Repository: asterisk Revision: 2139 U branches/v1-0_stable/Makefile U branches/v1-0_stable/channels/chan_sip.c U branches/v1-0_stable/configs/mgcp.conf.sample U branches/v1-0_stable/manager.c ------------------------------------------------------------------------ r2139 | markster | 2008-01-15 14:43:06 -0600 (Tue, 15 Jan 2008) | 5 lines Insert blank after REFER (bug ASTERISK-991) Correct path to VM sample (bug ASTERISK-988) Make manager interface non-blocking (bug ASTERISK-855) Don't bork on empty from in SIP (bug ASTERISK-881) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=2139 |