diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2023-09-07 05:08:09 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2023-09-07 05:14:50 +0200 |
commit | 932f6133ba05e133f8faae871a3b1e13d5579baa (patch) | |
tree | 9fb21fa7fac99751c106b2b565122c36e118896d | |
parent | 7aa4ad8b67a47a3a80271f533baa7cf278c06495 (diff) |
MNCC_EncDec.c: fix missing SDP in enc of mncc_rtp
Change-Id: Ice4e9ac63d9d8c8bff33298eb1e1dcb413179cc9
-rw-r--r-- | library/MNCC_EncDec.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/MNCC_EncDec.cc b/library/MNCC_EncDec.cc index ffc2aa8c..0119863e 100644 --- a/library/MNCC_EncDec.cc +++ b/library/MNCC_EncDec.cc @@ -229,6 +229,10 @@ OCTETSTRING enc__MNCC__PDU(const MNCC__PDU& in) } rtp.payload_type = in.u().rtp().payload__type(); rtp.payload_msg_type = in.u().rtp().payload__msg__type(); + if (in.u().rtp().sdp().is_value()) { + const CHARSTRING &sdp = in.u().rtp().sdp(); + strncpy(rtp.sdp, sdp, sizeof(rtp.sdp)); + } ret_val = OCTETSTRING(sizeof(rtp), (uint8_t *) &rtp); break; case MNCC__MsgUnion::ALT_hello: |