Merge "main/app: Only look to end of file if ':end' is specified, and not just ':'"
authorJoshua Colp <jcolp@digium.com>
Wed, 23 Mar 2016 21:52:05 +0000 (16:52 -0500)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Wed, 23 Mar 2016 21:52:06 +0000 (16:52 -0500)
channels/chan_sip.c

index 97cd6ab..09ab1a1 100644 (file)
@@ -18859,7 +18859,7 @@ static void check_via(struct sip_pvt *p, const struct sip_request *req)
        c = strchr(via, ' ');
        if (c) {
                *c = '\0';
-               c = ast_skip_blanks(c+1);
+               c = ast_strip(c+1);
                if (strcasecmp(via, "SIP/2.0/UDP") && strcasecmp(via, "SIP/2.0/TCP") && strcasecmp(via, "SIP/2.0/TLS")) {
                        ast_log(LOG_WARNING, "Don't know how to respond via '%s'\n", via);
                        return;