aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mncc
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-27 17:05:55 +0300
committerfixeria <vyanitskiy@sysmocom.de>2021-11-03 21:12:52 +0000
commitc6921e5068ba62cde67707fb3c8103919d1e0c0e (patch)
tree4f3be4159e914d8211d0859c165396a466a6251d /tests/mncc
parente0661105aca655c2edf6bdbd52f2a4490ce877aa (diff)
mncc: rework passing GCR over the MNCC interface
Using *unpacked* 'struct osmo_gcr_parsed' in the MNCC PDUs makes the protocol even more complicated than it currently is, and moreover complicates implementing MNCCv8 in the ttcn3-sip-test. Replace 'struct osmo_gcr_parsed' in 'struct gsm_mncc' with a fixed-length buffer, which is supposed to hold the Global Call Reference encoded as per 3GPP TS 29.205. Indicate presence of GCR using the MNCC_F_GCR flag. Change-Id: I259b6d7e4cbe26159b9b496356fc7c1c27d54521 Fixes: I705c860e51637b4537cad65a330ecbaaca96dd5b Related: OS#5164, OS#5282
Diffstat (limited to 'tests/mncc')
-rw-r--r--tests/mncc/mncc_test.ok18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/mncc/mncc_test.ok b/tests/mncc/mncc_test.ok
index 7cb12015e..059e8080d 100644
--- a/tests/mncc/mncc_test.ok
+++ b/tests/mncc/mncc_test.ok
@@ -1,15 +1,15 @@
test_sdp_termination()
struct gsm_mncc:
-empty SDP: len=1872 sdplen=1024 sdp="\0" rc=0
-empty SDP, shortest possible: len=849 sdplen=1 sdp="\0" rc=0
-empty SDP, zero len: len=848 sdplen=0 sdp=- rc=-22
-terminated SDP str: len=1872 sdplen=1024 sdp="Privacy is a desirable marketing option\0" rc=0
-terminated SDP str, shortest possible: len=888 sdplen=40 sdp="Privacy is a desirable marketing option\0" rc=0
-terminated SDP str, but len excludes nul: len=887 sdplen=39 sdp="Privacy is a desirable marketing option" rc=-22
-terminated SDP str, but len too short: len=871 sdplen=23 sdp="Privacy is a desirable " rc=-22
-len way too short: len=10 sdplen=-838 sdp=- rc=-22
-len zero: len=0 sdplen=-848 sdp=- rc=-22
+empty SDP: len=1876 sdplen=1026 sdp="\0" rc=0
+empty SDP, shortest possible: len=851 sdplen=1 sdp="\0" rc=0
+empty SDP, zero len: len=850 sdplen=0 sdp=- rc=-22
+terminated SDP str: len=1876 sdplen=1026 sdp="Privacy is a desirable marketing option\0" rc=0
+terminated SDP str, shortest possible: len=890 sdplen=40 sdp="Privacy is a desirable marketing option\0" rc=0
+terminated SDP str, but len excludes nul: len=889 sdplen=39 sdp="Privacy is a desirable marketing option" rc=-22
+terminated SDP str, but len too short: len=873 sdplen=23 sdp="Privacy is a desirable " rc=-22
+len way too short: len=10 sdplen=-840 sdp=- rc=-22
+len zero: len=0 sdplen=-850 sdp=- rc=-22
struct gsm_mncc_rtp:
empty SDP: len=1168 sdplen=1024 sdp="\0" rc=0