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.
This commit is contained in:
Holger Hans Peter Freyther 2010-09-19 04:15:39 +08:00
parent 249d69a26c
commit 985f5694c7
1 changed files with 0 additions and 5 deletions

View File

@ -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;