[asterisk-bugs] [JIRA] (ASTERISK-21208) 'sip set options {on|off}' command to explicitly enable 200 OK responses to OPTIONS

Walter Doekes (JIRA) noreply at issues.asterisk.org
Mon Mar 11 14:48:01 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204109#comment-204109 ] 

Walter Doekes commented on ASTERISK-21208:
------------------------------------------

While I could see a use for this. I'd think that altering your [default] context would be a decent workaround.

If user-part exists in [default] you return 200. If you want to shutdown, remove that user-part exten from [default] and you start returning 404. I'd expect your distribution proxy to be configurable so it can differentiate between 200 as good and 404 as bad (*).

Removing an exten can be done using CLI commands as well AFAIK. (Replace [default] with a specific context in case your matched peer has a different context.)

The problems I have with patch are:
- the naming: you're not disabling/enabling options, you're altering the response code, but only in a limited manner (*)
- "optionsenable = TRUE;" is initialized between debug-related vars
- there is no way to set it other than through a CLI command (and it gets reset on sip reload)

My suggestion would be to either (a) use the workaround or (b) suggest your problem on the developers mailing list and explain why you chose this solution.

Regards,
Walter

(*) Do you perhaps want a 503 instead of a 404 on SIP_GET_DEST_EXTEN_NOT_FOUND?
                
> 'sip set options {on|off}' command to explicitly enable 200 OK responses to OPTIONS
> -----------------------------------------------------------------------------------
>
>                 Key: ASTERISK-21208
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21208
>             Project: Asterisk
>          Issue Type: New Feature
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 11.2.1
>         Environment: CentOS 6.3 x86_64
>            Reporter: Ashley Winters
>            Assignee: Ashley Winters
>            Severity: Minor
>         Attachments: sip_set_options-11.patch, sip_set_options-trunk.patch
>
>
> I want asterisk to be able to inform a call distribution proxy which is performing OPTIONS pings that it doesn't want to receive any calls -- without setting the ast_shutting_down() flag. The ast_shutting_down() flag causes channel creation to fail in ast_channel_alloc(), but I want calls in-progress to be able to proceed with their IVR dialplans which often result in an outbound Dial.
> 'core stop gracefully' is actually not sufficiently "graceful" since it blocks new outbound calls, and 'core stop when convenient' makes asterisk continue to respond to OPTIONS with 200 OK.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list