mgw: Allow receiving lowercase MGCP header keyword

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: I7d1e55faddafa3c3093d38513d4a434ecf5ea5bd
This commit is contained in:
Pau Espin 2019-06-26 13:06:30 +02:00
parent 7eb6f2cb56
commit 9a34592c09
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ int mgcp_parse_header(struct mgcp_parse_data *pdata, char *data)
}
break;
case 2:
if (strcmp("MGCP", elem)) {
if (strcasecmp("MGCP", elem)) {
LOGP(DLMGCP, LOGL_ERROR,
"MGCP header parsing error\n");
return -510;