aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-06 17:54:27 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-08 07:28:36 +0800
commit24963554a86e85df2319c78f6e4f72c2cb5d32a4 (patch)
tree4a8b134454c995d61752603ac53ed5be76899884 /openbsc/src
parentc7bd29e6d7eb038ba6c1189de633dedfbcd56cc1 (diff)
mgcp: Add a callback to inform the client that an endpoint got reallocated
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/mgcp/mgcp_protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c
index b7b955cb9..384551a6d 100644
--- a/openbsc/src/mgcp/mgcp_protocol.c
+++ b/openbsc/src/mgcp/mgcp_protocol.c
@@ -435,6 +435,8 @@ static struct msgb *handle_create_con(struct mgcp_config *cfg, struct msgb *msg)
LOGP(DMGCP, LOGL_NOTICE, "Endpoint 0x%x already allocated. Forcing realloc.\n",
ENDPOINT_NUMBER(endp));
mgcp_free_endp(endp);
+ if (cfg->realloc_cb)
+ cfg->realloc_cb(cfg, ENDPOINT_NUMBER(endp));
} else {
LOGP(DMGCP, LOGL_ERROR, "Endpoint is already used. 0x%x\n",
ENDPOINT_NUMBER(endp));