[asterisk-bugs] [Asterisk 0010865]: chan_sip crashes on reload

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Oct 2 03:36:12 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10865 
====================================================================== 
Reported By:                hauke
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10865
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 84050 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-02-2007 03:13 CDT
Last Modified:              10-02-2007 03:36 CDT
====================================================================== 
Summary:                    chan_sip crashes on reload
Description: 
Doing a reload in CLI lets Asterisk crashing if chan_sip is loaded.

====================================================================== 

---------------------------------------------------------------------- 
 hauke - 10-02-07 03:36  
---------------------------------------------------------------------- 
Well, I changed my little patch to:
Index: channels/chan_sip.c
===================================================================
--- channels/chan_sip.c (Revision 84050)
+++ channels/chan_sip.c (Arbeitskopie)
@@ -18912,7 +18912,12 @@
                ast_verbose("Previous SIP reload not yet done\n");
        else {
                sip_reloading = TRUE;
-               sip_reloadreason = a->fd ? CHANNEL_CLI_RELOAD :
CHANNEL_MODULE_RELOAD;
+               if(a) {
+                 sip_reloadreason = a->fd ? CHANNEL_CLI_RELOAD :
CHANNEL_MODULE_RELOAD;
+               } else {
+                 sip_reloadreason = CHANNEL_MODULE_RELOAD;
+               }
+
        }
        ast_mutex_unlock(&sip_reload_lock);
        restart_monitor();

I hope it's okay. here it works now :) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-02-07 03:36  hauke          Note Added: 0071292                          
======================================================================




More information about the asterisk-bugs mailing list