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:
parent
7eb6f2cb56
commit
9a34592c09
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue