Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126331 - Custom WAP ports for Kannel gateway patch
Summary: Custom WAP ports for Kannel gateway patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Mobile Phone Developers (INACTIVE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 12:23 UTC by Lubor Kolar
Modified: 2006-05-01 05:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New eBuild + patch file (kannel-patch.tar.bz2,5.42 KB, patch)
2006-03-15 12:27 UTC, Lubor Kolar
Details | Diff
Patch only in plaintext (kannel-1.4.0-custom-ports.patch,12.98 KB, patch)
2006-03-16 04:33 UTC, Lubor Kolar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lubor Kolar 2006-03-15 12:23:05 UTC
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 Lubor Kolar 2006-03-15 12:27:14 UTC
Created attachment 82233 [details, diff]
New eBuild + patch file
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-03-16 04:28:16 UTC
please reattach the patch without bzipping it.
Comment 3 Lubor Kolar 2006-03-16 04:33:42 UTC
Created attachment 82293 [details, diff]
Patch only in plaintext
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2006-03-16 07:44:14 UTC
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 Alin Năstac (RETIRED) gentoo-dev 2006-03-25 01:45:05 UTC
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 GoranB 2006-05-01 03:41:56 UTC
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 Alin Năstac (RETIRED) gentoo-dev 2006-05-01 05:20:22 UTC
fixed in 1.4.0-r2.
thanks for reporting this!