aboutsummaryrefslogtreecommitdiffstats
path: root/src/mgcp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-18 03:11:00 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-18 03:11:00 +0800
commite40bc38c422493c1c703ead9ee5d38ae4699e5e4 (patch)
treed4903f395734dda3c1d3f8cfba213d73f5301e94 /src/mgcp
parent33cdb7e027086f4eb1bb2c3c24072370e1641962 (diff)
mgcp: Merge the realloc_cb from OpenBSC here.
Diffstat (limited to 'src/mgcp')
-rw-r--r--src/mgcp/mgcp_protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mgcp/mgcp_protocol.c b/src/mgcp/mgcp_protocol.c
index e4d1996..59abcb8 100644
--- a/src/mgcp/mgcp_protocol.c
+++ b/src/mgcp/mgcp_protocol.c
@@ -390,6 +390,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));