aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2023-03-31 16:41:51 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2023-05-04 12:04:07 +0200
commitd6c4559271ed54e762c8d4b7654a7d66bab6b791 (patch)
tree590b339b39f2795ba48d5a3b9ffda1bd9981b057
parent6b41e15b45a1a27177d6ff761e07f86ea3e7940b (diff)
MGCP_Test: move template RtpFlowData up
The template RtpFlowData is defined in the middle of the code, lets move it up below the related record definition Change-Id: If854f708e4da8b3a7b02d1ace2eb7caa3e2f2bfb
-rw-r--r--mgw/MGCP_Test.ttcn46
1 files changed, 23 insertions, 23 deletions
diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index f1936cec..909ad25f 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -355,6 +355,29 @@ module MGCP_Test {
RtpOsmuxFlowData osmux
}
+ template RtpFlowData t_RtpFlow(charstring host_a, charstring host_b, uint7_t pt,
+ charstring codec, template charstring fmtp := omit) := {
+ em := {
+ hostname := host_a,
+ portnr := omit
+ },
+ mgw := {
+ hostname := host_b,
+ portnr := omit
+ },
+ codec_descr := {{
+ pt := pt,
+ codec := codec,
+ fmtp := fmtp
+ }},
+ osmux:= {
+ local_cid_sent := false,
+ local_cid := omit,
+ remote_cid := omit,
+ cfg := omit
+ }
+ }
+
/* To be used with f_flow_create/modify... functions */
function f_gen_sdp(RtpFlowData flow) runs on dummy_CT return SDP_Message {
var template SDP_Message sdp;
@@ -1795,29 +1818,6 @@ module MGCP_Test {
setverdict(pass);
}
- template RtpFlowData t_RtpFlow(charstring host_a, charstring host_b, uint7_t pt,
- charstring codec, template charstring fmtp := omit) := {
- em := {
- hostname := host_a,
- portnr := omit
- },
- mgw := {
- hostname := host_b,
- portnr := omit
- },
- codec_descr := {{
- pt := pt,
- codec := codec,
- fmtp := fmtp
- }},
- osmux:= {
- local_cid_sent := false,
- local_cid := omit,
- remote_cid := omit,
- cfg := omit
- }
- }
-
/* transmit RTP streams between two RTP Emulations back-to-back; expect no loss */
testcase TC_rtpem_selftest() runs on dummy_CT {
var RtpemStats stats[2];