bsc: Call into the SCCP layer to create a new connection.
This commit is contained in:
parent
46c5ab3624
commit
cc48fb8083
|
@ -8,5 +8,7 @@
|
|||
struct bsc_api *osmo_bsc_api();
|
||||
|
||||
int bsc_queue_for_msc(struct gsm_subscriber_connection *conn, struct msgb *msg);
|
||||
int bsc_create_new_connection(struct gsm_subscriber_connection *conn,
|
||||
struct msgb *msg, uint16_t chosen_channel);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -66,6 +66,8 @@ static void bsc_cipher_mode_compl(struct gsm_subscriber_connection *conn,
|
|||
static int bsc_compl_l3(struct gsm_subscriber_connection *conn, struct msgb *msg,
|
||||
uint16_t chosen_channel)
|
||||
{
|
||||
if (bsc_create_new_connection(conn, msg, chosen_channel) == 0)
|
||||
return BSC_API_CONN_POL_ACCEPT;
|
||||
return BSC_API_CONN_POL_REJECT;
|
||||
}
|
||||
|
||||
|
|
|
@ -75,6 +75,13 @@ int bsc_queue_for_msc(struct gsm_subscriber_connection *conn, struct msgb *msg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int bsc_create_new_connection(struct gsm_subscriber_connection *conn,
|
||||
struct msgb *msg, uint16_t chosen_channel)
|
||||
{
|
||||
LOGP(DMSC, LOGL_ERROR, "Not implemented yet.\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
int osmo_bsc_sccp_init(struct gsm_network *gsmnet)
|
||||
{
|
||||
sccp_set_log_area(DSCCP);
|
||||
|
|
Loading…
Reference in New Issue