Harald Welte
714ded9e75
library: Add RSL_Emulation.ttcn
...
This emulates the RSL part of a BTS towards a BSC
2017-12-08 14:00:22 +01:00
Harald Welte
9c0bddf293
General_Types: Make it work with TITAN 6.3.0
...
Somehow the TITAN 6.3.0 compiler is stricter...
2017-12-08 13:58:08 +01:00
Harald Welte
0d846a7e37
IPA_Emulation: Add support for RSL port
...
In addition to the MGCP and SCCP ports, we now also have a RSL port
through which other components can transceive RSL messages via IPA
2017-12-07 17:58:28 +01:00
Harald Welte
da9d36c73e
IPA_Types: Define IpaStreamId for up to 4 TRX
2017-12-07 17:57:17 +01:00
Harald Welte
101fbed2de
RSL_Types: ts_RSL_CHAN_RQD needs access delay
2017-12-07 17:56:38 +01:00
Harald Welte
7ae931488f
RSL_Types: Add RACH and PAGING LOAD templates
2017-12-07 17:56:15 +01:00
Harald Welte
f4b068b3a0
RSL_Types: tr_RSL_MsgType() now accepts template as message discriminator
...
... avoids tiresome valueof() at every caller site
2017-12-07 17:54:55 +01:00
Harald Welte
c287775e35
RSL_Types: add tr_RSL_PAGING_CMD / tr_RSL_IMM_ASSIGN templates
2017-12-07 17:54:35 +01:00
Harald Welte
fff6930765
RSL_Types: ms_identity, full_imm_ass_info IE types
2017-12-07 17:53:42 +01:00
Harald Welte
d5f521ef5c
RSL_Types: Define RACH Load IE
2017-12-07 17:53:06 +01:00
Harald Welte
8f2c21d815
RSL_Types: Channel Mode contains a length byte
2017-12-07 17:52:40 +01:00
Harald Welte
15bb5b53db
RSL_Types: L3_INFO has TL16V type, not TLV (i.e. 16bit length)
2017-12-07 17:52:04 +01:00
Harald Welte
319be826cb
RSL_Types: Define each enumerated member
...
TTCN-3 enumerated seems to behave different than C enums, so you cannot
simply assume that the next element will have the previous element
value+1.
2017-12-07 17:50:26 +01:00
Harald Welte
e09921fef2
IPA_Emulation: Change default params to const, export them and use empty string
...
This means we rather return an empty string in CCM_IDTAG responses,
rather than crashing due to non-defined record members.
2017-12-07 17:49:00 +01:00
Harald Welte
3b2ce0217f
GSM_Types: Label some templates as (value) templates
2017-12-07 17:47:00 +01:00
Harald Welte
e21096dbaf
IPA_Emulation: Allow client/server to specify CCM parameters
2017-12-04 20:45:12 +01:00
Harald Welte
71a36023dc
ggsn: Verify presence of DNS addresses in IPCP of PCO
...
If we request DNS in IPCP in PCO, we also expect a corresponding result.
2017-12-04 19:04:24 +01:00
Daniel Willmann
961e5c9d3b
MGCP_Templates: Accept 200 and 250 as ACK for DLCX
...
Both codes are valid as response to a DLCX, see RFC3661 Ch 2.2:
"""
The 250 response code can be used to acknowledge a successful completion
of a DeleteConnection command. However, a 200 response code is also
appropriate.
"""
2017-11-30 16:43:36 +01:00
Daniel Willmann
fbef714394
MGCP_Templates: Change channel codec to AMR since this is how it's used
2017-11-30 16:43:11 +01:00
Harald Welte
e98bb2e153
BSSMAP: Ignore RSPI for unknown endpoint/CIC
2017-11-29 12:09:48 +01:00
Harald Welte
1218883e15
IPA_Emulation: Properly dissect multiple IPA messages in one TCP segment
2017-11-29 12:03:32 +01:00
Harald Welte
26595451b3
IPA_CodecPort: Wrap f_IPL4_setGetMsgLen function
2017-11-29 11:46:24 +01:00
Harald Welte
92e9816df8
IPA: Add support for IPAC_IDTAG_OSMO_RAND
...
this is a non-standard RAND value used by osmo-bsc_nat. The change
requires us to also properly define the individual IpaCcmGetPart
with a one-byte length value at its start.
2017-11-29 11:09:13 +01:00
Harald Welte
a1f0cbcfbe
ipa: PDU_IPA_CCM: Missing CROSSTAG to decode get/resp/other
2017-11-29 11:04:40 +01:00
Harald Welte
643e2a60b0
add RSL_Types.ttcn - untested definitions defining GSM A-bis RSL
2017-11-27 15:03:18 +01:00
Harald Welte
28d943ef35
ts_BSSMAP_HandoReq: Hand in raw list as argument, not IE type
...
Also, add new ts_BSSMAP_Paging() template.
2017-11-25 15:01:16 +01:00
Harald Welte
92632e1dce
ipa: Enable configuration on whether MGCP should use old or new IPA stream ID
2017-11-25 02:31:20 +01:00
Harald Welte
1dd8f3713b
IPA_Emulation: Introduce template for ASP_IPA_Unitdata
2017-11-25 02:25:27 +01:00
Harald Welte
5aa1803ef9
Move MGCP_CodecPort to library directory
2017-11-25 02:05:04 +01:00
Harald Welte
9ca9eb1648
BSSMAP_Emulation: Set verdict to 'fail' in various lookup error paths
2017-11-25 00:50:43 +01:00
Harald Welte
0a4317a805
ipa: Close SCCP Connection from MSC side; set verdict on BSC side
2017-11-25 00:50:31 +01:00
Harald Welte
be620f6da6
ipa: Give all components proper names to aid log interpretation
2017-11-25 00:23:54 +01:00
Harald Welte
66fecd46a8
MSC_ConnectionHandler: Fix E1 timeslots to be monotonically incrementing
2017-11-24 23:54:44 +01:00
Harald Welte
c859df518f
BSC_MS_ConnectionHandler: implement MGCP request->response handling
2017-11-24 23:41:41 +01:00
Harald Welte
525a9c118d
BSSMAP_Emulation: Fix regex for extraction of MGW endpoint number
...
Don't use perl regex syntax ".*' but simply "*"
2017-11-24 23:40:41 +01:00
Harald Welte
1b2748eb7b
BSSMAP_Emulation: CIC extraction must happen on BSC side, not MSC side
2017-11-24 23:40:16 +01:00
Harald Welte
9002957584
MGCP_Templates: More templates (for the MGW side)
2017-11-24 23:39:50 +01:00
Harald Welte
4c11d56f2d
move MGCP utility functions from MSC_ConnectionHandler to MGCP_Templates
2017-11-24 23:39:00 +01:00
Harald Welte
7dc5d37b33
MGC_Types: Add work-around for failure to distinguish between Cmd + Resp
2017-11-24 20:52:06 +01:00
Harald Welte
51f34ada61
MGCP_Templates: Add missing 'any' for trans_id in tr_CRCX_ACK
2017-11-24 20:52:06 +01:00
Harald Welte
c82eef458d
ipa: Further progress on the bsc-nat test suite
2017-11-24 20:52:06 +01:00
Harald Welte
19ad52b3b9
IPA_Types: Fix length encoding during transmission of OSMO_EXT packets
...
The extra byte for further demuxing must be included when computing
the payload length from the (classic) IPA header point of view.
2017-11-24 20:52:06 +01:00
Harald Welte
4029e8cd03
Move MGCP_Types.ttcn to library; extract MGCP_Templates.ttcn to library
2017-11-24 20:52:06 +01:00
Harald Welte
2a8f847f6f
WIP: attempt at IPA extended StreamID support
2017-11-24 20:52:06 +01:00
Harald Welte
7ed2b08006
BSSMAP_Templates: fix unbound rR_Cause member in Assignment Complete
2017-11-23 18:52:13 +01:00
Harald Welte
5cc4aa2f06
BSSMAP_Emulation: Fix handling of userData
...
We cannot pass an unbound octetstring record member into a template
argument of a function :/
2017-11-23 18:51:28 +01:00
Harald Welte
ab05d6cf97
BSSMAP_Templates: Correct name is AssignmentReq, not AssignmentCmd
2017-11-23 18:50:52 +01:00
Harald Welte
b3414b2172
ipa: First version that emulates both MSC and BSC up to ASSIGNMENT REQ
2017-11-23 18:23:38 +01:00
Harald Welte
365f4edbd8
IPA/MSC/BSC Emulation: Framework for handling multiple SCCP connections
2017-11-23 00:00:43 +01:00
Harald Welte
c76f29f094
ipa: Pull everything together: L3->BSSAP->SCCP->IPA
2017-11-22 12:46:46 +01:00