]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
After some research, we realized that the default behaviour since a long
authorOlle Johansson <oej@edvina.net>
Tue, 17 Oct 2006 15:50:32 +0000 (15:50 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 17 Oct 2006 15:50:32 +0000 (15:50 +0000)
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.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45306 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c
configs/sip.conf.sample

index 9d6477636a88c6d1c81c7d5a434bfa7cf1ab84cd..8ad636e5b78cf055e0b715038dcdaffcc887f26c 100644 (file)
@@ -373,8 +373,6 @@ static int global_rtpkeepalive = 0;
 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;
 static int ruserobjs = 0;
@@ -3242,7 +3240,7 @@ static struct sip_pvt *find_call(struct sip_request *req, struct sockaddr_in *si
        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 @@ static int sip_show_settings(int fd, int argc, char *argv[])
        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 @@ static int handle_common_options(struct ast_flags *flags, struct ast_flags *mask
                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 @@ static int reload_config(void)
        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");
index c6e8c13550a2a95101b9e9c4e5539558e7ce3c52..889d959ea1b12303317eb773b3a56548221d8241 100644 (file)
@@ -111,7 +111,6 @@ srvlookup=yes                       ; Enable DNS SRV lookups on outbound calls
                                ; 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