summaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-05-09 19:42:17 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2014-06-05 14:09:52 +0200
commit452c183c5ee9cc2c1b0225d9706d0425b8c655e3 (patch)
tree42f7a8b58bcd4837c38534e740fa6115363c27de /openbsc/include/openbsc
parent909fac6689df570ef0c5983fe51da14eb3bf2783 (diff)
mgcp: Set net_end audio params in recvonly mode
Currently, if there is no SDP data in the MGCP message received from the net, the fields containing audio encoding information are not set in net_end. So in recvonly mode transcoding would not be set up correctly. This patch changes the implementation of the code handling CRCX and MDCX to use the codec signalled in the MGCP local connection options (field 'a:') if there isn't any SDP data. This is only halfway negotiation, because the codec is used blindly and not matched against the supported ones. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r--openbsc/include/openbsc/mgcp_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h
index 9f0c0f9e2..2b44e40be 100644
--- a/openbsc/include/openbsc/mgcp_internal.h
+++ b/openbsc/include/openbsc/mgcp_internal.h
@@ -123,6 +123,7 @@ struct mgcp_rtp_tap {
struct mgcp_lco {
char *string;
+ char *codec;
int pkt_period_min; /* time in ms */
int pkt_period_max; /* time in ms */
};