aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-05 08:08:17 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-05 08:08:17 +0800
commitf138f917ec7b535e0d71b8e70c71be7816e572da (patch)
tree0eeb40a4776413600697b0fef3114761a752ed46 /openbsc/include
parent1be9f2fddcfd9ba02f9f3a8203fa79b3b4e9b3e2 (diff)
mgcp: Allow to dynamically allocate ports from a range..
Allow to switch to a dynamic port allocator and not reuse the ports for a long time... This should help with a crazy network sending two streams at the same time.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/mgcp_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h
index 6c236735f..92e5f9955 100644
--- a/openbsc/include/openbsc/mgcp_internal.h
+++ b/openbsc/include/openbsc/mgcp_internal.h
@@ -66,6 +66,7 @@ struct mgcp_rtp_end {
struct bsc_fd rtcp;
int local_port;
+ int local_alloc;
};
struct mgcp_endpoint {
@@ -100,5 +101,6 @@ int mgcp_analyze_header(struct mgcp_config *cfg, struct msgb *msg,
int mgcp_send_dummy(struct mgcp_endpoint *endp);
int mgcp_bind_bts_rtp_port(struct mgcp_endpoint *endp, int rtp_port);
int mgcp_bind_net_rtp_port(struct mgcp_endpoint *endp, int rtp_port);
+int mgcp_free_rtp_port(struct mgcp_rtp_end *end);
#endif