neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34326?usp=email )
Change subject: MNCC_EncDec.c: fix missing SDP in enc of mncc_rtp ......................................................................
MNCC_EncDec.c: fix missing SDP in enc of mncc_rtp
Change-Id: Ice4e9ac63d9d8c8bff33298eb1e1dcb413179cc9 --- M library/MNCC_EncDec.cc 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/26/34326/1
diff --git a/library/MNCC_EncDec.cc b/library/MNCC_EncDec.cc index ffc2aa8..0119863 100644 --- a/library/MNCC_EncDec.cc +++ b/library/MNCC_EncDec.cc @@ -229,6 +229,10 @@ } 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: