[Home]

Summary:ASTERISK-10541: [FR] - Respond with an error to SIP OPTIONS if there is an active shutdown
Reporter:Edoardo Serra - WeBRainstorm S.r.l. (webrainstorm)Labels:
Date Opened:2007-10-16 05:47:14Date Closed:2007-10-17 12:40:56
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) sip-options-503.patch
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 €
Comments:By: Digium Subversion (svnbot) 2007-10-17 12:38:24

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 ASTERISK-10541)
Reported by: eserra
Patches:
     sip-options-503.patch uploaded by eserra (license 45)

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

By: Digium Subversion (svnbot) 2007-10-17 12:40:56

Repository: asterisk
Revision: 86150

_U  trunk/
U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r86150 | russell | 2007-10-17 12:40:55 -0500 (Wed, 17 Oct 2007) | 16 lines

Merged revisions 86149 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r86149 | russell | 2007-10-17 12:57:45 -0500 (Wed, 17 Oct 2007) | 8 lines

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

(closes issue ASTERISK-10541)
Reported by: eserra
Patches:
     sip-options-503.patch uploaded by eserra (license 45)

........

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