From 60d86b7d29aafb3f9faf4486ea3e07680f051fce Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 19 Feb 2018 15:36:05 +0100 Subject: bsc-nat: Enable octet-aligned when ensuring mode set From RFC 4867: octet-align: Permissible values are 0 and 1. If 1, octet-aligned operation SHALL be used. If 0 or if not present, bandwidth-efficient operation is employed. Change-Id: Ic4db7f6d18f650f36f3186965096771f748de5fd --- openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src') diff --git a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c index 9fc8ba31e..311ab94cc 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c +++ b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c @@ -939,7 +939,7 @@ copy: * safely append another line. */ if (ensure_mode_set && !found_fmtp && payload != -1) { - snprintf(buf, sizeof(buf) - 1, "a=fmtp:%d mode-set=2%s", + snprintf(buf, sizeof(buf) - 1, "a=fmtp:%d mode-set=2 octet-align=1%s", payload, cr ? "\r\n" : "\n"); buf[sizeof(buf) - 1] = '\0'; output->l3h = msgb_put(output, strlen(buf)); -- cgit v1.2.3