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
diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index f1936ce..909ad25 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -355,6 +355,29 @@
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 @@
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];