From 4ad5850d63ce1c974e5c6c155a08c09f4deec9f0 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 6 Apr 2010 11:14:03 +0200 Subject: [PATCH] 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. --- openbsc/src/nat/bsc_mgcp_utils.c | 1 + 1 file changed, 1 insertion(+) 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,