mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-27 16:07:15 -07:00
fix via comparison to not be case sensitive (bug #4496)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+1
-1
@@ -5270,7 +5270,7 @@ static int check_via(struct sip_pvt *p, struct sip_request *req)
|
||||
c++;
|
||||
while(*c && (*c < 33))
|
||||
c++;
|
||||
if (strcmp(via, "SIP/2.0/UDP")) {
|
||||
if (strcasecmp(via, "SIP/2.0/UDP")) {
|
||||
ast_log(LOG_WARNING, "Don't know how to respond via '%s'\n", via);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user