[sccp/nat] Make it optional to send data on a SCCP Connection Refuse

This can be used to send a Location Updating Reject down to the
BSC when it is clear that a subscriber is not allowed.
This commit is contained in:
Holger Hans Peter Freyther 2010-06-15 18:52:12 +08:00
parent f1012a432c
commit e6dfb18a79
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ exit2:
exit3:
/* send a SCCP Connection Refused */
refuse = sccp_create_refuse(parsed->src_local_ref, SCCP_REFUSAL_SCCP_FAILURE);
refuse = sccp_create_refuse(parsed->src_local_ref, SCCP_REFUSAL_SCCP_FAILURE, NULL, 0);
if (refuse) {
bsc_send_data(bsc, refuse->l2h, msgb_l2len(refuse), IPAC_PROTO_SCCP);
msgb_free(refuse);