summaryrefslogtreecommitdiffstats
path: root/library/MGCP_Templates.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-01-26 10:34:44 +0100
committerHarald Welte <laforge@gnumonks.org>2018-01-26 10:42:53 +0100
commitbb5a1212c8e33361433112e1b62283065ebe44c7 (patch)
treeee6e3209edee73395066f829fe0304704312cb76 /library/MGCP_Templates.ttcn
parenta02515f82f6a525c194f2a974a35e17ff2b3d4b0 (diff)
MGCP_Emulation: More complete implementation
* re-introduce connection table * introduce unitdata_cb for connectionless MGCP messages (like AUEP) * rename MGCP_Emulation_CT members to avoid clashes with other similar component names when using "multiple inheritance" * Use HostName/PortNumber types on MGCP_conn_parameters * allow "bind to local UDP port only, permit any UDP source port" behavior * implement expect matching criteria + expect matching only on CRCX * add helper function f_create_mgcp_expect() like in other Emulations Change-Id: I953a91e663648715fa4fe98acacca393c8747001
Diffstat (limited to 'library/MGCP_Templates.ttcn')
-rw-r--r--library/MGCP_Templates.ttcn14
1 files changed, 14 insertions, 0 deletions
diff --git a/library/MGCP_Templates.ttcn b/library/MGCP_Templates.ttcn
index f4c6e0f..c0c827f 100644
--- a/library/MGCP_Templates.ttcn
+++ b/library/MGCP_Templates.ttcn
@@ -268,4 +268,18 @@ module MGCP_Templates {
return int2hex(float2int(rnd()*2147483647.0), 8);
}
+ /* those verbs that related to a connection (and hence have ConnectionId) */
+ template MgcpVerb tr_MgcpVerb_ConnectionOriented := ("CRCX", "MDCX", "DLCX", "AUCX");
+ /* entire command template matching only connection oriented verbs */
+ template MgcpCommand tr_MgcpCommand_CO := {
+ line := {
+ verb := tr_MgcpVerb_ConnectionOriented,
+ trans_id := ?,
+ ep := ?,
+ ver := ?
+ },
+ params := *,
+ sdp := *
+ }
+
}