In the mobile Internet world, there are standard UDP ports (9200-9203) on which mobile phones are trying to connect the WAP gateway. Unfortunatelly, some mobile network operators are blocking these ports to force users to use their (expensive) WAP gateways. Some mobile phones manufacturers (like Siemens) allow users to override the the default port. This "workaround" let users to use custom and free WAP gateways. Original Kannel WAP gateway uses standard ports without possibility to change it. I made a patch which solves this problem. User can add to the /etc/kannel/kannel.conf under section "group = wapbox" lines like these: wsp-port = 1081 wtp-port = 1082 wsps-port = 1083 wtps-port = 1084
Created attachment 82233 [details, diff] New eBuild + patch file
please reattach the patch without bzipping it.
Created attachment 82293 [details, diff] Patch only in plaintext
1) any reason for defining port_w* global variables as long instead of unsigned short? 2) did you sent this patch to upstream for inclusion in the future versions?
a slightly changed version of this patch is applied in kannel-1.4.0-r1. please send /usr/portage/app-mobilephone/kannel/files/kannel-1.4.0-custom-wap-ports.patch to upstream, for inclusion in future versions. thanks for your contribution!
Please fix this patch for configurations, which do not use the WAP functionality of Kannel. My setup uses only the SMS features and this patch breaks my configuration, because it expects the custom port configuration values to be present. Startup fails with this message: PANIC: Trying to fetch variable `wsp-port' in non-existing group As I do not have a wapbox group (don't need it), this is a normal thing to happen! Sure, a workaround is to add the group and values, but this is not "a nice thing" to do ;) Thanks
fixed in 1.4.0-r2. thanks for reporting this!