Commit Graph

366 Commits

Author SHA1 Message Date
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 e7096c1571 ggsn: verify IPv4 addr + byte order in IPCP PCO DNS addresses 2017-12-04 19:40:44 +01:00
Harald Welte eb9184ddb4 ggsn: Encode IPCP in IPCP Request, rather than using hard-coded hex string
We now have a proper definition of IPCP in IPCP_Types and can thus
encode/decode on the fly and avoid hand-crafted octetstrings.
2017-12-04 19:04:24 +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
Daniel Willmann 04541d715e bsc-nat: Wait for the second MDCX in the BSC_MS conn handler
The bsc-nat sends another MDCX so account for that in the state machine
2017-11-30 13:14:37 +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 79feba5ed4 rename 'ipa' directory to 'bsc-nat' 2017-11-25 02:32:50 +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 f09d1bad0a ipa: Ability to transport MGCP over UDP rather than IPA Mux 2017-11-25 02:20:13 +01:00
Harald Welte 5aa1803ef9 Move MGCP_CodecPort to library directory 2017-11-25 02:05:04 +01:00
Harald Welte a34e47f2e4 BSC_MS_ConnectionHandler: Use actual state machine to enforce order of events 2017-11-25 01:28:54 +01:00
Harald Welte 98f1f410b2 MSC_ConnectionHandler: Add 5s guard timer 2017-11-25 01:21:49 +01:00
Harald Welte 8f3a962125 BSC_MS_ConnectionHandler: Update FIXME/TODOs 2017-11-25 01:19:13 +01:00
Harald Welte 2fb0479512 ipa: Make test actually terminate. Ensure termination after 30s. 2017-11-25 01:14:35 +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 8ac9f022d7 MSC_ConnectionHandler: Use "Call Control" as release cause 2017-11-24 23:48:14 +01:00
Harald Welte 11e78084fe MSC_ConnectionHandler: Use correct (receive) template for ClearComplete 2017-11-24 23:42:07 +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
Daniel Willmann fd338332bf Add new parameter to plug osmo-bsc_nat in the middle 2017-11-24 17:23:23 +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