Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte2017-05-16 17:00:29 +0000
committerHarald Welte2018-03-18 11:17:14 +0000
commit3c5f719ccfcedf8b7233a51337127e3da7547408 (patch)
treed43669b735d4cf1709d117713c8eeed3aa3d3a32
parentd93c9a6f4970bfbf80b5248b667f8545c88e606e (diff)
downloadtitan.ProtocolEmulations.SCCP-3c5f719ccfcedf8b7233a51337127e3da7547408.tar.gz
titan.ProtocolEmulations.SCCP-3c5f719ccfcedf8b7233a51337127e3da7547408.tar.xz
titan.ProtocolEmulations.SCCP-3c5f719ccfcedf8b7233a51337127e3da7547408.zip
SCCP Emulation: Fix CC optional user data
A SCCP CC can optionally contain userData. The code so far simply dropped any such data, and didn't pass it along in the N-CONNCET.cfm primitive. Let's fix that. Signed-off-by: Harald Welte <laforge@gnumonks.org> Change-Id: I39d06214e37efae2e11ca1b8c8daeb0b7530497a
-rw-r--r--src/SCCP_Emulation.ttcn12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/SCCP_Emulation.ttcn b/src/SCCP_Emulation.ttcn
index d20d729..294362a 100644
--- a/src/SCCP_Emulation.ttcn
+++ b/src/SCCP_Emulation.ttcn
@@ -3767,6 +3767,16 @@ group SCCPFunctions
log(pl_PDU_SCCP_ConnectionConfirm);
+ //Store data parameter
+ var template SCCP_PAR_UserData tl_data := omit;
+ if (ispresent(pl_PDU_SCCP_ConnectionConfirm.optionalPart))
+ {
+ if (ispresent(pl_PDU_SCCP_ConnectionConfirm.optionalPart.data))
+ {
+ tl_data := pl_PDU_SCCP_ConnectionConfirm.optionalPart.data.data;
+ }
+ }
+
//check if connection already established
if (ConnectionAlreadyEstablished(pl_PDU_SCCP_ConnectionConfirm.destLocRef))
{//startif2
@@ -3807,7 +3817,7 @@ group SCCPFunctions
SCCP_SP_PORT.send( t_ASP_N_CONNECT_cfm(
omit,
omit,
- omit,
+ tl_data,
vl_N_CONNECT_cfm.connectionId,
omit
));//send ASP_SCCP_N_CONNECT_confirm

Back to the top