From c49212778f84736f1cc59fccf7946595c629ed91 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 5 Aug 2010 03:37:22 +0800 Subject: mgcp: Move the bfd for rtp/rtcp into the port Stop using the memset in the mgcp_rtp_end_reset as we will reset the list pointers and then have a mess.. --- openbsc/include/openbsc/mgcp_internal.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'openbsc/include/openbsc/mgcp_internal.h') diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h index 7f999a35d..357f3bf82 100644 --- a/openbsc/include/openbsc/mgcp_internal.h +++ b/openbsc/include/openbsc/mgcp_internal.h @@ -59,6 +59,12 @@ struct mgcp_rtp_end { int payload_type; + /* + * Each end has a socket... + */ + struct bsc_fd rtp; + struct bsc_fd rtcp; + int local_port; }; @@ -69,14 +75,6 @@ struct mgcp_endpoint { int conn_mode; int orig_mode; - /* - * RTP mangling: - * - we get RTP and RTCP to us and need to forward to the BTS - * - we get RTP and RTCP from the BTS and forward to the network - */ - struct bsc_fd local_rtp; - struct bsc_fd local_rtcp; - /* backpointer */ struct mgcp_config *cfg; -- cgit v1.2.3