aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-06 06:20:35 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-06 06:20:35 +0800
commitdfcf2df69869bd026fa4adcf6672db5a2196e9a8 (patch)
treee74e7a6f6011d54e3943cee0597a732a191354f2
parenta4ca6d3947bb6063ac4c5c64064f6f7a93f9857f (diff)
ussd: Create the hook where packages from the MSC pass by
-rw-r--r--include/bsc_ussd.h2
-rw-r--r--src/bsc_ussd.c9
-rw-r--r--src/msc_conn.c1
3 files changed, 12 insertions, 0 deletions
diff --git a/include/bsc_ussd.h b/include/bsc_ussd.h
index 69ad93c..5484efa 100644
--- a/include/bsc_ussd.h
+++ b/include/bsc_ussd.h
@@ -24,4 +24,6 @@
int bsc_ussd_handle_out_msg(struct bsc_data *bsc, struct sccp_parse_result *result, struct msgb *msg);
+int bsc_ussd_handle_in_msg(struct mtp_link *link, struct sccp_parse_result *res, struct msgb *msg);
+
#endif
diff --git a/src/bsc_ussd.c b/src/bsc_ussd.c
index 5c7e962..e0989b9 100644
--- a/src/bsc_ussd.c
+++ b/src/bsc_ussd.c
@@ -37,3 +37,12 @@ int bsc_ussd_handle_out_msg(struct bsc_data *bsc, struct sccp_parse_result *resu
return 0;
}
+
+/*
+ * Check the message if it contains a location update request...
+ */
+int bsc_ussd_handle_in_msg(struct mtp_link *link, struct sccp_parse_result *res,
+ struct msgb *msg)
+{
+ return 0;
+}
diff --git a/src/msc_conn.c b/src/msc_conn.c
index 1cee1f9..2dfc7e7 100644
--- a/src/msc_conn.c
+++ b/src/msc_conn.c
@@ -220,6 +220,7 @@ static int ipaccess_a_fd_cb(struct bsc_fd *bfd)
sls = sls_for_src_ref(result.destination_local_reference);
/* Check for Location Update Accept */
+ bsc_ussd_handle_in_msg(link, &result, msg);
/* patch a possible PC */
bss_rewrite_header_to_bsc(msg, link->opc, link->dpc);