[asterisk-bugs] [Asterisk 0010994]: [FR] - Respond with an error to SIP OPTIONS if there is an active shutdown

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Oct 17 12:38:25 CDT 2007


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=10994 
====================================================================== 
Reported By:                eserra
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   10994
Category:                   Channels/chan_sip/General
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 85764 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-16-2007 05:47 CDT
Last Modified:              10-17-2007 12:38 CDT
====================================================================== 
Summary:                    [FR] - Respond with an error to SIP OPTIONS if there
is an active shutdown
Description: 
As SIP OPTIONS is used to see if an Asterisk server is alive/available, I
propose to respond with a "503 Unavailable" if there is an active shutdown
and the Asterisk won't accept calls anymore

I'd use it in conjunction with OpenSER dispatcher module which uses SIP
OPTIONS to probe the availability of a SIP gateway.

It would also be useful to add the peer status 'UNAVAILABLE' (or use
'UNREACHABLE' , even if unappropriate) for peer returning a "503
Unavailable"

My 0,02 €
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 10-17-07 12:38  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 86149

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r86149 | russell | 2007-10-17 12:38:23 -0500 (Wed, 17 Oct 2007) | 8 lines

If Asterisk is in the middle of shutting down, respond to OPTIONS
with 503 Unavailable.

(closes issue http://bugs.digium.com/view.php?id=10994)
Reported by: eserra
Patches:
      sip-options-503.patch uploaded by eserra (license 45)

------------------------------------------------------------------------ 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-17-07 12:38  svnbot         Checkin                                      
10-17-07 12:38  svnbot         Note Added: 0072195                          
10-17-07 12:38  svnbot         Status                   new => assigned     
10-17-07 12:38  svnbot         Assigned To               => russell         
======================================================================




More information about the asterisk-bugs mailing list