aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 11:14:03 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 11:14:03 +0200
commit6768387f16e6d09b8e9d014a1638ee1aa505273c (patch)
tree7aebce52e0e4620f6713ed834df41ddfb7edf93f
parent5ef1234dd3500d884933f359a4dd0b5651306e98 (diff)
nat: Set the MGCP audio payload to -1.
This value is copied into the bts_audio_payload when allocating a BTS MGCP endpoint. For the nat we have actually no interest in patching MGCP messages. We will patch them to the network because the code will do it anyway, we will not patch things back to the BTS.
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index ffdc3ed87..1397d0e7a 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -443,6 +443,7 @@ int bsc_mgcp_init(struct bsc_nat *nat)
}
/* some more MGCP config handling */
+ nat->mgcp_cfg->audio_payload = -1;
nat->mgcp_cfg->data = nat;
nat->mgcp_cfg->policy_cb = bsc_mgcp_policy_cb;
nat->bsc_endpoints = talloc_zero_array(nat,