mgw_fsm: move MGCP timeout to mgw_fsm_T_defs

For the tdefs used by libosmo-mgcp-client, passed via
osmo_mgcpc_ep_alloc(), do not use the separate mgw_tdefs. Instead, move
X2427 to mgw_fsm_T_defs. This makes X2427 VTY configurable.

Related: SYS#5895
Change-Id: I2aa67121c20dc3da5fd937a02b6747468622f317
This commit is contained in:
Neels Hofmeyr 2022-04-02 02:10:16 +02:00
parent 7eb89ec9fe
commit 05aaccc42d
2 changed files with 3 additions and 7 deletions

View File

@ -122,12 +122,7 @@ struct mgw_fsm_priv {
uint16_t msc_rtp_port;
};
static const struct osmo_tdef mgw_tdefs[] = {
{.T = -2427, .default_val = 5, .desc = "timeout for MGCP response from MGW" },
{ }
};
static const struct osmo_tdef_state_timeout mgw_fsm_timeouts[32] = {
struct osmo_tdef_state_timeout mgw_fsm_timeouts[32] = {
[MGW_ST_CRCX_HNB] = {.T = -1001 },
[MGW_ST_ASSIGN] = {.T = -1002 },
[MGW_ST_MDCX_HNB] = {.T = -1003 },
@ -179,7 +174,7 @@ static void mgw_fsm_crcx_hnb_onenter(struct osmo_fsm_inst *fi, uint32_t prev_sta
epname = mgcp_client_rtpbridge_wildcard(map->hnb_ctx->gw->mgcp_client);
mgw_fsm_priv->mgcpc_ep =
osmo_mgcpc_ep_alloc(fi, MGW_EV_MGCP_TERM, map->hnb_ctx->gw->mgcp_client, mgw_tdefs, fi->id, "%s", epname);
osmo_mgcpc_ep_alloc(fi, MGW_EV_MGCP_TERM, map->hnb_ctx->gw->mgcp_client, mgw_fsm_T_defs, fi->id, "%s", epname);
mgw_fsm_priv->mgcpc_ep_ci_hnb = osmo_mgcpc_ep_ci_add(mgw_fsm_priv->mgcpc_ep, "to-HNB");
osmo_mgcpc_ep_ci_request(mgw_fsm_priv->mgcpc_ep_ci_hnb, MGCP_VERB_CRCX, &mgw_info, fi, MGW_EV_MGCP_OK,

View File

@ -21,6 +21,7 @@ struct osmo_tdef mgw_fsm_T_defs[] = {
{.T = -1002, .default_val = 10, .desc = "Timeout for the HNB to respond to RAB Assignment Request" },
{.T = -1003, .default_val = 5, .desc = "Timeout for HNB side call-leg (to-HNB) completion" },
{.T = -1004, .default_val = 5, .desc = "Timeout for MSC side call-leg (to-MSC) completion" },
{.T = -2427, .default_val = 5, .desc = "timeout for MGCP response from MGW" },
{ }
};