**>From: "Carel, Michael P. (Digitel-GSM)" <[EMAIL PROTECTED]> **>To: users@kannel.org **>Subject: WAP users filtering **>Date: Tue, 22 Feb 2005 10:15:31 +0800 **> **>Hi to all, **> **>Can kannel block/allow specific number(MSISDN) users via white-list regex? **>For what I've read in the users manual it is only for SMS/SMSC filtering... **>Can I do the same for the WAP users? I need to set rules for specific MSISDN **>who can use WAP. **> **>Thanks in advance..
The WAP specifications do not define any way to provide to a WAP gateway the MSISDN associated with the IP connection. As a result, there is no standard method to limit access to the WAP gateway via an MSISDN. However, if you have direct access to the Network Access Server (NAS) or the Serving GPRS Support Node (SGSN) AND it uses RADIUS accounting, then you could configure Kannel to act as a RADIUS accounting proxy. Once Kannel is in between the NAS/SGSN and the real RADIUS server, Kannel can obtain the MSISDN to IP address mapping. From there, it would be simple for the WAP gateway to support access lists. Of course, getting this type of access either means you are setting up your own dial-in server (NAS) or are paying mucho dollars to the Mobile Network Operator to gain access to the information. Oh Wait! If you are part of Digitel Mobile in the Philippines, then you might be able to access the provisioning system. In that case, you would only need to modify gateway/gw/bb_udp.c:udp_receiver() and in the "else" block of the validation of the IP address (if (!is_allowed_ip(..)): - Add a query for IP<->MSISDN mapping (probably cache the results for 1/4 the lifetime of the default DHCP lease). - Create the MSG structure (and populate it) only if the MSISDN is allowed. See ya... d.c.