aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-19 04:15:39 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-20 02:51:29 +0800
commit985f5694c76245c0f0455f2f3197bbfe663aacde (patch)
treecad17a6705edd4758c4ae7a30c45ecf35aa975e4 /openbsc/src
parent249d69a26c5bfdb3adedfa1d822861a200082033 (diff)
nat: Keep the audio name and default payload around
For all forwarded messages this will not be used, but it is of use for the transcoding.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index 2543ea242..765952768 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -645,11 +645,6 @@ int bsc_mgcp_nat_init(struct bsc_nat *nat)
}
/* some more MGCP config handling */
- if (cfg->audio_name)
- talloc_free(cfg->audio_name);
- cfg->audio_name = NULL;
-
- cfg->audio_payload = -1;
cfg->data = nat;
cfg->policy_cb = bsc_mgcp_policy_cb;
cfg->force_realloc = 1;