From 260d6ed02c12ccde6d8eec5a34118b71207757b6 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 6 Aug 2010 01:12:21 +0800 Subject: mgcp: Add a call tap feature to forward audio to another forward port For debugging it is useful to forward (tee) UDP packets to another system and use gstreamer to inspect the rtp stream. This is untested code and might contain bugs.... and of course only tap your own calls. --- openbsc/src/mgcp/mgcp_protocol.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/src/mgcp/mgcp_protocol.c') diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c index 036ddf02a..9916b4086 100644 --- a/openbsc/src/mgcp/mgcp_protocol.c +++ b/openbsc/src/mgcp/mgcp_protocol.c @@ -826,4 +826,6 @@ void mgcp_free_endp(struct mgcp_endpoint *endp) endp->conn_mode = endp->orig_mode = MGCP_CONN_NONE; endp->allow_patch = 0; + + memset(&endp->taps, 0, sizeof(endp->taps)); } -- cgit v1.2.3