[asterisk-bugs] [Asterisk 0010665]: [patch] SIP Session-Timers Support in Asterisk

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Nov 28 21:24:06 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10665 
====================================================================== 
Reported By:                rjain
Assigned To:                oej
====================================================================== 
Project:                    Asterisk
Issue ID:                   10665
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.11  
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 81013 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             09-07-2007 03:43 CDT
Last Modified:              11-28-2007 21:24 CST
====================================================================== 
Summary:                    [patch] SIP Session-Timers Support in Asterisk
Description: 
The Asterisk SIP stack currently does not support SIP Session-Timers (RFC
4028). This leads to defunct SIP sessions in Asterisk when calls do not
clear through normal signaling procedures due to network or end-point
failures.

John Todd recently discussed this concept on asterisk-dev:
http://lists.digium.com/pipermail/asterisk-dev/2007-July/028574.html

John Todd, JR Richardson and Kevin Fleming have expressed interest in
seeing this feature supported in Asterisk.

A software design document for this feature and code changes (unified diff
of chan_sip.c) are attached to this report. Digium has my code submission
agreement on file.
====================================================================== 

---------------------------------------------------------------------- 
 rjain - 11-28-07 21:24  
---------------------------------------------------------------------- 
All,

The latest and greatest sip_session_timers branch crashes for me when
processing an INVITE or OPTIONS. I've tried this on a couple of different
machines with clean builds etc. but no success. The same configuration
works fine for me for 1.4.13.

I'm wondering if someone else could try the current sip_session_timers
branch and report their results. 

The crash in my case happens at the following line, which seems completely
unrelated to the session-timers patch: 

http://bugs.digium.com/view.php?id=0  ast_hashtab_start_traversal (tab=0x0) at
hashtab.c:628
628             if (tab->do_locking)
(gdb) where
http://bugs.digium.com/view.php?id=0  ast_hashtab_start_traversal (tab=0x0) at
hashtab.c:628
http://bugs.digium.com/view.php?id=1  0x080d4a62 in pbx_find_extension
(chan=0x0, bypass=0x0, q=0xb7a069d0,
context=0x92baa82 "default", exten=0x2b7f19 "s", priority=1, label=0x0,
    callerid=0xb7a06d55 "1000", action=E_MATCH) at pbx.c:1138
http://bugs.digium.com/view.php?id=2  0x080da7d2 in pbx_extension_helper (c=0x0,
con=0x0,
context=0x92baa82 "default", exten=0x2b7f19 "s", priority=1, label=0x0,
    callerid=0xb7a06d55 "1000", action=E_MATCH, found=0x0,
combined_find_spawn=0) at pbx.c:2465
http://bugs.digium.com/view.php?id=3  0x080db8a6 in ast_exists_extension
(c=0x92bac10, context=0x11 "",
exten=0x11 "", priority=17, callerid=0x11 "") at pbx.c:2984
http://bugs.digium.com/view.php?id=4  0x0026fe96 in get_destination
(p=0x92b9430, oreq=0xb7a0c0a0) at
/usr/src/sip_session_timers/include/asterisk/strings.h:39
http://bugs.digium.com/view.php?id=5  0x002b2537 in handle_incoming
(p=0x92b9430, req=0xb7a0c0a0,
sin=0xb7a0c090, recount=0x92bac10, nounlock=0xb7a0bf74) at
chan_sip.c:14846
http://bugs.digium.com/view.php?id=6  0x002b4ffa in sipsock_read (id=0x926b6e0,
fd=17, events=1,
ignore=0x0) at chan_sip.c:16980
http://bugs.digium.com/view.php?id=7  0x080b6cde in ast_io_wait (ioc=0x9262730,
howlong=1000) at io.c:293
http://bugs.digium.com/view.php?id=8  0x002b635c in do_monitor (data=0x0) at
chan_sip.c:17208
http://bugs.digium.com/view.php?id=9  0x08113ec5 in dummy_start (data=0x11) at
utils.c:858 http://bugs.digium.com/view.php?id=10 0x00cc5371 in
start_thread () from /lib/tls/libpthread.so.0
http://bugs.digium.com/view.php?id=11 0x00b2cffe in clone () from
/lib/tls/libc.so.6
(gdb) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-28-07 21:24  rjain          Note Added: 0074536                          
======================================================================




More information about the asterisk-bugs mailing list