9
0
Fork 0

mgcp: Return 502 in case the endpoint is allocated.

When an endpoint is allocated we do not have enough resources to
connect it again and this situation is permanent as long as the
endpoint is connected.

Returning 502 might help some switches to release stale audio resources.
This commit is contained in:
Holger Hans Peter Freyther 2013-05-21 17:49:15 +02:00
parent b2e8cfbe8d
commit 4bc679f3ec
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ static struct msgb *handle_create_con(struct mgcp_parse_data *p)
} else {
LOGP(DMGCP, LOGL_ERROR, "Endpoint is already used. 0x%x\n",
ENDPOINT_NUMBER(endp));
return create_err_response(endp, 400, "CRCX", p->trans);
return create_err_response(endp, 502, "CRCX", p->trans);
}
}