ussd: Create the hook where packages from the MSC pass by
This commit is contained in:
parent
a4ca6d3947
commit
dfcf2df698
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Reference in New Issue