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.
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index 2543ea2..7659527 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -645,11 +645,6 @@
}
/* 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;