increase RAN timeout in MGCP FSM

The MGCP FSM implements a timeout when waiting for the RAN to complete
the call (assignment complete, alerting, connect...). This timeout
is currently set to 10sec. This means if the other end did not pick
up after 10sec, the MGCP connection will be lost while the phone keeps
ringing. When the other end finally picks up, the call gets
disconnected.

This behavior is odd and requires a proper fix. For now increasing the
timeout to 120sec. will decrese the probability that he problem occurs.

- Increas RAN timeout to 120sec (2 min).

Change-Id: I5a11d53f9701d9b11b18d7026ff2241c7c0b57f5
This commit is contained in:
Philipp Maier 2018-02-08 14:05:43 +01:00
parent 770fbd2024
commit 4c57377766
1 changed files with 2 additions and 3 deletions

View File

@ -44,7 +44,7 @@
#define MGCP_MGW_TIMEOUT 4 /* in seconds */
#define MGCP_MGW_TIMEOUT_TIMER_NR 1
#define MGCP_RAN_TIMEOUT 10 /* in seconds */
#define MGCP_RAN_TIMEOUT 120 /* in seconds */
#define MGCP_RAN_TIMEOUT_TIMER_NR 2
#define MGCP_REL_TIMEOUT 60 /* in seconds */
#define MGCP_REL_TIMEOUT_TIMER_NR 3
@ -445,8 +445,7 @@ static void fsm_crcx_compl(struct osmo_fsm_inst *fi, uint32_t event, void *data)
/* Note: When we reach this point then the situation is basically that
* we have two sides connected, both are in loopback. The local ports
* of the side pointing towards the BSS should be already communicated
* and we are waiting now for the BSS to return with the assignment
* complete command. */
* and we are waiting now the other end to pick up. */
osmo_fsm_inst_state_chg(fi, ST_MDCX_CN, MGCP_RAN_TIMEOUT, MGCP_RAN_TIMEOUT_TIMER_NR);
return;