diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-05-05 18:24:15 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-05-05 18:24:15 +0200 |
commit | 999092790caa2c41803a447389a717ac2b9ef745 (patch) | |
tree | 33bbf0f437530b5fb136f1e0627f1d4e63881f80 /src/hlr.c | |
parent | 64f3ca3864d1563655c006810bc8ad1cc61d69d8 (diff) |
some more comment / todo updates
Diffstat (limited to 'src/hlr.c')
-rw-r--r-- | src/hlr.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -156,6 +156,7 @@ int osmo_gsup_addr_send(struct osmo_gsup_server *gs, return osmo_gsup_conn_send(conn, msg); } +/* Transmit a given GSUP message for the given LU operation */ static void _luop_tx_gsup(struct lu_operation *luop, const struct osmo_gsup_message *gsup) { @@ -189,6 +190,7 @@ void lu_op_tx_error(struct lu_operation *luop, enum gsm48_gmm_cause cause) talloc_free(luop); } +/* timer call-back in case LU operation doesn't receive an response */ static void lu_op_timer_cb(void *data) { struct lu_operation *luop = data; @@ -267,6 +269,7 @@ void lu_op_tx_insert_subscr_data(struct lu_operation *luop) memset(&gsup, 0, sizeof(gsup)); gsup.message_type = OSMO_GSUP_MSGT_INSERT_DATA_REQUEST; strncpy(gsup.imsi, luop->subscr.imsi, sizeof(gsup.imsi)-1); + /* FIXME: deal with encoding the following data */ gsup.msisdn_enc; gsup.hlr_enc; @@ -369,6 +372,8 @@ static int rx_upd_loc_req(struct osmo_gsup_conn *conn, return 0; } + /* Check if subscriber is generally permitted on CS or PS + * service (as requested) */ if (!is_ps && !subscr->nam_cs) { lu_op_tx_error(luop, GMM_CAUSE_PLMN_NOTALLOWED); return 0; |