Bug 126331 - Custom WAP ports for Kannel gateway patch
Bug#: 126331 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: mobile-phone@gentoo.org Reported By: kolar@porcus.cz
Component: Unspecified
URL: 
Summary: Custom WAP ports for Kannel gateway patch
Keywords:  
Status Whiteboard: 
Opened: 2006-03-15 12:23 0000
Description:   Opened: 2006-03-15 12:23 0000
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

------- Comment #1 From Lubor Kolar 2006-03-15 12:27:14 0000 -------
Created an attachment (id=82233) [details]
New eBuild + patch file

------- Comment #2 From Alin Năstac 2006-03-16 04:28:16 0000 -------
please reattach the patch without bzipping it.

------- Comment #3 From Lubor Kolar 2006-03-16 04:33:42 0000 -------
Created an attachment (id=82293) [details]
Patch only in plaintext

------- Comment #4 From Alin Năstac 2006-03-16 07:44:14 0000 -------
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? 

------- Comment #5 From Alin Năstac 2006-03-25 01:45:05 0000 -------
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!

------- Comment #6 From GoranB 2006-05-01 03:41:56 0000 -------
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

------- Comment #7 From Alin Năstac 2006-05-01 05:20:22 0000 -------
fixed in 1.4.0-r2.
thanks for reporting this!