aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-10-04 10:19:33 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-10-04 10:19:33 +0200
commitf612e431ff907d5247c172a07d37a249554dc332 (patch)
tree8396e607ad26cf551ddb3789502139f6582768e3
parent796e1a2125a1d4ca2810ae643d462dd49152db28 (diff)
mgcp: Add a hack to allow to patch the SSRCrelease/1.2
This is a hack and we will need to do this only if a MDCX with a new IP address is arriving.
-rw-r--r--src/mgcp/mgcp_network.c3
1 files changed, 2 insertions, 1 deletions
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,