WIP: Comment places to hook mgcp FSM for co-located mgw
Change-Id: Idccdb487aee1ccaeb1b50175d4ec665381090c6b
This commit is contained in:
parent
1bc3fb4dd9
commit
d4fb8e044c
|
@ -35,6 +35,9 @@ struct hnbgw_context_map {
|
||||||
uint32_t scu_conn_id;
|
uint32_t scu_conn_id;
|
||||||
|
|
||||||
enum hnbgw_context_map_state state;
|
enum hnbgw_context_map_state state;
|
||||||
|
|
||||||
|
/* FSM instance for the MGW */
|
||||||
|
struct osmo_fsm_inst *mgw_fi;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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);
|
llist_add_tail(&map->cn_list, &cn_if_new->map_list);
|
||||||
map->state = MAP_S_ACTIVE;
|
map->state = MAP_S_ACTIVE;
|
||||||
|
|
||||||
|
// TODO: map->mgw_fi = osmo_fsm_inst_alloc();
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -356,6 +356,11 @@ static int handle_cn_data_ind(struct hnbgw_cnlink *cnlink,
|
||||||
return 0;
|
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,
|
return rua_tx_dt(map->hnb_ctx, map->is_ps, map->rua_ctx_id,
|
||||||
msgb_l2(oph->msg), msgb_l2len(oph->msg));
|
msgb_l2(oph->msg), msgb_l2len(oph->msg));
|
||||||
}
|
}
|
||||||
|
|
|
@ -225,6 +225,9 @@ static int rua_to_scu(struct hnb_context *hnb,
|
||||||
map->rua_ctx_id, map->scu_conn_id);
|
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 */
|
/* add primitive header */
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case OSMO_SCU_PRIM_N_CONNECT:
|
case OSMO_SCU_PRIM_N_CONNECT:
|
||||||
|
|
Loading…
Reference in New Issue