aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-05-21 17:49:15 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-05-23 09:59:25 +0200
commita26e6173b106b9430a847ae1e64c45dc5b5c0d78 (patch)
treea4598bac223cf3470acb5180e42771a0cf54111a
parente48231c53972a41918dc50aadced4bcae692574c (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.c2
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);
}
}