aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-07 00:04:46 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 20:06:49 +0100
commit933daaa01656109e63040446725e05fe7d32d118 (patch)
tree638fbde9287ed7d86e458a8c41618f3b1d8f98b6 /openbsc
parentaf4b5fb13e3615410fed1b78a3f2a7cbf2d7ed0b (diff)
bsc: Implement SCCP connection confirmed handling.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc/osmo_bsc_sccp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/bsc/osmo_bsc_sccp.c b/openbsc/src/bsc/osmo_bsc_sccp.c
index cc381bcda..9680267d5 100644
--- a/openbsc/src/bsc/osmo_bsc_sccp.c
+++ b/openbsc/src/bsc/osmo_bsc_sccp.c
@@ -61,6 +61,12 @@ static void msc_outgoing_sccp_state(struct sccp_connection *conn, int old_state)
con_data->sccp = NULL;
sccp_connection_free(conn);
bsc_delete_connection(con_data);
+ } else if (conn->connection_state == SCCP_CONNECTION_STATE_ESTABLISHED) {
+ LOGP(DMSC, LOGL_DEBUG, "Connection established: %p\n", conn);
+ con_data = (struct osmo_bsc_sccp_con *) conn->data_ctx;
+
+ bsc_del_timer(&con_data->sccp_cc_timeout);
+ bsc_schedule_timer(&con_data->sccp_it_timeout, SCCP_IT_TIMER, 0);
}
}