9
0
Fork 0

ussd: Create the hook where packages from the MSC pass by

This commit is contained in:
Holger Hans Peter Freyther 2010-10-06 06:20:35 +08:00
parent a4ca6d3947
commit dfcf2df698
3 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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);