aboutsummaryrefslogtreecommitdiffstats
path: root/library/MGCP_Templates.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-11-24 23:39:50 +0100
committerHarald Welte <laforge@gnumonks.org>2017-11-24 23:39:50 +0100
commit9002957584daa46ff24443b8a9552413f30617f7 (patch)
tree5132d0ac89a8eb8e0b7884138cf03fc61354254e /library/MGCP_Templates.ttcn
parent4c11d56f2d1842ab5af523eca6fdf91c92bd15ba (diff)
MGCP_Templates: More templates (for the MGW side)
Diffstat (limited to 'library/MGCP_Templates.ttcn')
-rw-r--r--library/MGCP_Templates.ttcn32
1 files changed, 32 insertions, 0 deletions
diff --git a/library/MGCP_Templates.ttcn b/library/MGCP_Templates.ttcn
index 8b9aae97..1dacf3ab 100644
--- a/library/MGCP_Templates.ttcn
+++ b/library/MGCP_Templates.ttcn
@@ -64,6 +64,12 @@ module MGCP_Templates {
sdp := sdp
}
+ template MgcpCommand tr_CRCX := {
+ line := t_MgcpCmdLine("CRCX", ?, ?),
+ params := *,
+ sdp := *
+ }
+
template MgcpResponse tr_CRCX_ACK := {
line := {
code := "200",
@@ -74,6 +80,16 @@ module MGCP_Templates {
sdp := ?
}
+ template MgcpResponse ts_CRCX_ACK(MgcpTransId trans_id, MgcpConnectionId conn_id, template SDP_Message sdp := omit) := {
+ line := {
+ code := "200",
+ trans_id := trans_id,
+ string := "OK"
+ },
+ params:= { ts_MgcpParConnectionId(conn_id) },
+ sdp := sdp
+ }
+
template MgcpCommand ts_MDCX(MgcpTransId trans_id, charstring ep, MgcpConnectionMode mode, MgcpCallId call_id, MgcpConnectionId conn_id, template SDP_Message sdp := omit) := {
line := t_MgcpCmdLine("MDCX", trans_id, ep),
params := {
@@ -86,6 +102,14 @@ module MGCP_Templates {
sdp := sdp
}
+ template MgcpCommand tr_MDCX := {
+ line := t_MgcpCmdLine("MDCX", ?, ?),
+ params := *,
+ sdp := *
+ }
+
+ template MgcpResponse ts_MDCX_ACK(MgcpTransId trans_id, MgcpConnectionId conn_id, template SDP_Message sdp := omit) := ts_CRCX_ACK(trans_id, conn_id, sdp);
+
/* have a function that generates a template, rather than a template in order to handle
* optional parameters */
function ts_DLCX(MgcpTransId trans_id, charstring ep, template MgcpCallId call_id := omit,
@@ -103,6 +127,12 @@ module MGCP_Templates {
return cmd;
}
+ template MgcpCommand tr_DLCX := {
+ line := t_MgcpCmdLine("DLCX", ?, ?),
+ params := *,
+ sdp := *
+ }
+
template MgcpResponse tr_DLCX_ACK := {
line := {
code := "200",
@@ -113,6 +143,8 @@ module MGCP_Templates {
sdp := *
}
+ template MgcpResponse ts_DLCX_ACK(MgcpTransId trans_id, MgcpConnectionId conn_id, template SDP_Message sdp := omit) := ts_CRCX_ACK(trans_id, conn_id, sdp);
+
/* SDP Templates */
template SDP_Origin ts_SDP_origin(charstring addr, charstring session_id,
charstring session_version := "1",