From f138f917ec7b535e0d71b8e70c71be7816e572da Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 5 Aug 2010 08:08:17 +0800 Subject: 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. --- openbsc/include/openbsc/mgcp_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/include') 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 -- cgit v1.2.3