aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-10-04 11:36:57 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-01-28 16:25:25 +0100
commitd27cdeee2881cd94761ebe7a21a91a7b6039e8de (patch)
treecb52f58e040b84a32a8af0f8489700f7e08d8aab
parent3d452a2ad0b990ba45dd3c642586bfdff59a3333 (diff)
[PATCH] 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.
-rw-r--r--openbsc/src/libmgcp/mgcp_network.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/libmgcp/mgcp_network.c b/openbsc/src/libmgcp/mgcp_network.c
index a2cfc2385..335add7dc 100644
--- a/openbsc/src/libmgcp/mgcp_network.c
+++ b/openbsc/src/libmgcp/mgcp_network.c
@@ -170,7 +170,8 @@ static void patch_and_count(struct mgcp_endpoint *endp, struct mgcp_rtp_state *s
state->ssrc = rtp_hdr->ssrc;
state->seq_offset = (state->max_seq + 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,