diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-26 20:04:28 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-26 20:04:28 +0000 |
commit | b8d3c3896932035422f7b9dcbf93e0c05e565cfe (patch) | |
tree | ad461e8d18906ee427686470fc889e98b3e68202 | |
parent | c078d808df994da321307338b9a8cef2e9469839 (diff) |
use case-insensitive comparisons for headears (issue #5023)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6423 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d83cac1ef..f56f2fe88 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5290,7 +5290,7 @@ static int parse_contact(struct sip_pvt *pvt, struct sip_peer *p, struct sip_req struct sockaddr_in oldsin; if (ast_strlen_zero(expires)) { /* No expires header */ - expires = strstr(get_header(req, "Contact"), "expires="); + expires = strcasestr(get_header(req, "Contact"), "expires="); if (expires) { if (sscanf(expires + 8, "%d;", &expiry) != 1) expiry = default_expiry; @@ -8722,7 +8722,7 @@ static int handle_response_register(struct sip_pvt *p, int resp, char *rest, str } else break; } - tmptmp = strstr(contact, "expires="); + tmptmp = strcasestr(contact, "expires="); if (tmptmp) { if (sscanf(tmptmp + 8, "%d;", &expires) != 1) expires = 0; |