[asterisk-commits] oej: branch 1.2 r45306 - in /branches/1.2:
channels/ configs/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Oct 17 08:50:35 MST 2006
Author: oej
Date: Tue Oct 17 10:50:32 2006
New Revision: 45306
URL: http://svn.digium.com/view/asterisk?rev=45306&view=rev
Log:
After some research, we realized that the default behaviour since a long
time was doing the right thing, even though the change optimized a bit
and removed a lot of potential risks.
Conclusion: No need for a configuration option at all.
Modified:
branches/1.2/channels/chan_sip.c
branches/1.2/configs/sip.conf.sample
Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=45306&r1=45305&r2=45306&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Tue Oct 17 10:50:32 2006
@@ -372,8 +372,6 @@
static int global_reg_timeout = DEFAULT_REGISTRATION_TIMEOUT;
static int global_regattempts_max = 0;
-
-static int global_ignoreoodresponses = 1;
/* Object counters */
static int suserobjs = 0;
@@ -3242,7 +3240,7 @@
ast_mutex_unlock(&iflock);
/* If this is a response and we have ignoring of out of dialog responses turned on, then drop it */
- if (req->method == SIP_RESPONSE && global_ignoreoodresponses)
+ if (req->method == SIP_RESPONSE)
return NULL;
p = sip_alloc(callid, sin, 1, intended_method);
@@ -8311,7 +8309,6 @@
ast_cli(fd, " Videosupport: %s\n", videosupport ? "Yes" : "No");
ast_cli(fd, " AutoCreatePeer: %s\n", autocreatepeer ? "Yes" : "No");
ast_cli(fd, " Allow unknown access: %s\n", global_allowguest ? "Yes" : "No");
- ast_cli(fd, " Drop misc responses: %s\n", global_ignoreoodresponses ? "Yes" : "No");
ast_cli(fd, " Promsic. redir: %s\n", ast_test_flag(&global_flags, SIP_PROMISCREDIR) ? "Yes" : "No");
ast_cli(fd, " SIP domain support: %s\n", AST_LIST_EMPTY(&domain_list) ? "No" : "Yes");
ast_cli(fd, " Call to non-local dom.: %s\n", allow_external_domains ? "Yes" : "No");
@@ -11955,11 +11952,6 @@
ast_set_flag(mask, SIP_PROMISCREDIR);
ast_set2_flag(flags, ast_true(v->value), SIP_PROMISCREDIR);
res = 1;
- } else if (!strcasecmp(v->name, "ignoreoodresponses")) {
- if (ast_true(v->value))
- global_ignoreoodresponses = 1;
- else
- global_ignoreoodresponses = 0;
}
return res;
@@ -12612,7 +12604,6 @@
tos = 0;
expiry = DEFAULT_EXPIRY;
global_allowguest = 1;
- global_ignoreoodresponses = 1;
/* Read the [general] config section of sip.conf (or from realtime config) */
v = ast_variable_browse(cfg, "general");
Modified: branches/1.2/configs/sip.conf.sample
URL: http://svn.digium.com/view/asterisk/branches/1.2/configs/sip.conf.sample?rev=45306&r1=45305&r2=45306&view=diff
==============================================================================
--- branches/1.2/configs/sip.conf.sample (original)
+++ branches/1.2/configs/sip.conf.sample Tue Oct 17 10:50:32 2006
@@ -111,7 +111,6 @@
; for any reason, always reject with '401 Unauthorized'
; instead of letting the requester know whether there was
; a matching user or peer for their request
-;ignoreoodresponses = no ; If no then out of dialog responses will not be ignored
;
; If regcontext is specified, Asterisk will dynamically create and destroy a
; NoOp priority 1 extension for a given peer who registers or unregisters with
More information about the asterisk-commits
mailing list