WIP: Comment places to hook mgcp FSM for co-located mgw

Change-Id: Idccdb487aee1ccaeb1b50175d4ec665381090c6b
This commit is contained in:
Daniel Willmann 2021-11-23 15:54:12 +01:00
parent 1bc3fb4dd9
commit d4fb8e044c
4 changed files with 13 additions and 0 deletions

View File

@ -35,6 +35,9 @@ struct hnbgw_context_map {
uint32_t scu_conn_id;
enum hnbgw_context_map_state state;
/* FSM instance for the MGW */
struct osmo_fsm_inst *mgw_fi;
};

View File

@ -106,6 +106,8 @@ context_map_alloc_by_hnb(struct hnb_context *hnb, uint32_t rua_ctx_id,
llist_add_tail(&map->cn_list, &cn_if_new->map_list);
map->state = MAP_S_ACTIVE;
// TODO: map->mgw_fi = osmo_fsm_inst_alloc();
return map;
}

View File

@ -356,6 +356,11 @@ static int handle_cn_data_ind(struct hnbgw_cnlink *cnlink,
return 0;
}
/* TODO: Intercept RAB Assignment Request
* Setup MGW and forward patched message with IP address
* Save state in context map
*/
return rua_tx_dt(map->hnb_ctx, map->is_ps, map->rua_ctx_id,
msgb_l2(oph->msg), msgb_l2len(oph->msg));
}

View File

@ -225,6 +225,9 @@ static int rua_to_scu(struct hnb_context *hnb,
map->rua_ctx_id, map->scu_conn_id);
}
/* TODO: Check for map and if this is a RAB Assignment response
* Control mgw, patch IPs and forward patched message */
/* add primitive header */
switch (type) {
case OSMO_SCU_PRIM_N_CONNECT: