diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-06-24 22:27:47 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-08-08 11:06:31 +0200 |
commit | f9d449edd66e8a4ed0eab8d5ea09f7fc7d0005e3 (patch) | |
tree | a848f9e8366bd7887de04399251f37fdc89f3538 /library | |
parent | e49043867226b4966fcf59ca0e1d7d2468a875c4 (diff) |
HLR: Add HLR_EUSE.ttcn to implement minimal external USSD Entity
As OsmoHLR is getting support for external USSD Entities (EUSEs),
we have to implement this function in the test logic in order to
test it.
Change-Id: Ibab210b06abfd5a21e81c7f7fbe574c4f67414a0
Diffstat (limited to 'library')
-rw-r--r-- | library/GSUP_Types.ttcn | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/library/GSUP_Types.ttcn b/library/GSUP_Types.ttcn index 60445652..ba8180fe 100644 --- a/library/GSUP_Types.ttcn +++ b/library/GSUP_Types.ttcn @@ -687,4 +687,15 @@ template GSUP_PDU tr_GSUP_PROC_SS_ERR( } ); +function f_gsup_find_ie(GSUP_PDU msg, GSUP_IEI iei, out GSUP_IeValue ret) return boolean { + for (var integer i := 0; i < sizeof(msg.ies); i := i+1) { + if (msg.ies[i].tag == iei) { + ret := msg.ies[i].val; + return true; + } + } + return false; +} + + } with { encode "RAW"; variant "FIELDORDER(msb)" } |