Minor ACk fix (bug #2687, again)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-12-20 09:35:11 +00:00
parent 30a4094907
commit a0af83a9c4

View File

@@ -4486,14 +4486,14 @@ static int parse_ok_contact(struct sip_pvt *pvt, struct sip_request *req)
snprintf(pvt->our_contact, sizeof(pvt->our_contact) - 1, "<%s>", c);
strncpy(pvt->okcontacturi, c, sizeof(pvt->okcontacturi) - 1);
/* Make sure it's a SIP URL */
if (strncasecmp(c, "sip:", 4)) {
ast_log(LOG_NOTICE, "'%s' is not a valid SIP contact (missing sip:) trying to use anyway\n", c);
} else
c += 4;
strncpy(pvt->okcontacturi, c, sizeof(pvt->okcontacturi) - 1);
/* Ditch arguments */
n = strchr(c, ';');
if (n)