Review at  https://gerrit.osmocom.org/6598

bsc-nat: Enable octet-aligned when ensuring mode set

>From RFC 4857:
      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
---
M openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/98/6598/1

diff --git a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c 
b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
index 48847865..57f6a25 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
@@ -929,7 +929,7 @@
         * 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));

-- 
To view, visit https://gerrit.osmocom.org/6598
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4db7f6d18f650f36f3186965096771f748de5fd
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pes...@sysmocom.de>

Reply via email to