diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-05-21 17:49:15 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-05-21 18:00:24 +0200 |
commit | 4bc679f3ec4525837e219d520478d33447d1e3ea (patch) | |
tree | fcfbedbeabcbf0293d9d81f1f6ffd575ac35cb76 | |
parent | b2e8cfbe8d447b048c181566ee3d96659f7f96e4 (diff) |
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.
-rw-r--r-- | src/mgcp/mgcp_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mgcp/mgcp_protocol.c b/src/mgcp/mgcp_protocol.c index 2a4a464..4fc6135 100644 --- a/src/mgcp/mgcp_protocol.c +++ b/src/mgcp/mgcp_protocol.c @@ -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); } } |