mgw: Allow receiving lowercase X-Osmo-Ign Callid field

MGCP RFC3435 (https://tools.ietf.org/html/rfc3435) states almost all
text has to be handled in a case-insensitive way, except SDP parts.

Related: OS#4001

Change-Id: Ifc1b3bfe6ff6922df478cea89bbbb291b5fa5706
This commit is contained in:
Pau Espin 2019-06-26 13:09:39 +02:00
parent 9a34592c09
commit 6e26c70f46
1 changed files with 1 additions and 1 deletions

View File

@ -785,7 +785,7 @@ static bool parse_x_osmo_ign(struct mgcp_endpoint *endp, char *line)
if (!token)
break;
if (!strcmp(token, "C"))
if (!strcasecmp(token, "C"))
endp->x_osmo_ign |= MGCP_X_OSMO_IGN_CALLID;
else
LOGPENDP(endp, DLMGCP, LOGL_ERROR, "received unknown X-Osmo-IGN item '%s'\n", token);