aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp/mgcp_protocol.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-06 01:12:21 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-06 01:12:21 +0800
commit260d6ed02c12ccde6d8eec5a34118b71207757b6 (patch)
treec4741888236f20e1b3752a07e72de4efcae9b6ed /openbsc/src/mgcp/mgcp_protocol.c
parent6357a8e3110a6cdecb5ee8fdbe59d806f257c1ba (diff)
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.
Diffstat (limited to 'openbsc/src/mgcp/mgcp_protocol.c')
-rw-r--r--openbsc/src/mgcp/mgcp_protocol.c2
1 files changed, 2 insertions, 0 deletions
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));
}