From f612e431ff907d5247c172a07d37a249554dc332 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 4 Oct 2012 10:19:33 +0200 Subject: mgcp: Add a hack to allow to patch the SSRC This is a hack and we will need to do this only if a MDCX with a new IP address is arriving. --- src/mgcp/mgcp_network.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mgcp/mgcp_network.c b/src/mgcp/mgcp_network.c index 5bac1af..0b1d9a3 100644 --- a/src/mgcp/mgcp_network.c +++ b/src/mgcp/mgcp_network.c @@ -123,7 +123,8 @@ static void patch_and_count(struct mgcp_endpoint *endp, struct mgcp_rtp_state *s state->ssrc = rtp_hdr->ssrc; state->seq_offset = (state->seq_no + 1) - seq; state->timestamp_offset = state->last_timestamp - timestamp; - state->patch = endp->allow_patch; +#warning "Always allow to patch the SSRC" + state->patch = 1; LOGP(DMGCP, LOGL_NOTICE, "The SSRC changed on 0x%x SSRC: %u offset: %d from %s:%d in %d\n", ENDPOINT_NUMBER(endp), state->ssrc, state->seq_offset, -- cgit v1.2.3