Change standard WAP-ports?

Gerrit Einhoff <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hello.

I just installed Kannel to use it as a WAP-gateway and it works perfectly. My 
only problem is, that my wireless network provider apparently blocks the 
standard WAP-ports at 920x to force everybody to use their gateway. So I 
wanted to change the ports Kannel listens on.

These seem to be hardcoded and my knowledge of the Kannel source-code and the 
WAP-protocol in general is not good enough to decide what to change. A grep 
on the sources show that the binding seems to be in gw/bb_udp.c:

gw/bb_udp.c:    add_service(9200, octstr_get_cstr(interface_name));        /* 
wsp       */
gw/bb_udp.c:    add_service(9201, octstr_get_cstr(interface_name));        /* 
wsp/wtp   */
gw/bb_udp.c:    /* add_service(9202, octstr_get_cstr(interface_name));  * 
wsp/wtls      */
gw/bb_udp.c:    /* add_service(9203, octstr_get_cstr(interface_name));  * 
wsp/wtp/wtls */
gw/bb_udp.c:    /* add_service(9204, octstr_get_cstr(interface_name));  * 
vcard */
gw/bb_udp.c:    /* add_service(9205, octstr_get_cstr(interface_name));  * 
vcal  */
gw/bb_udp.c:    /* add_service(9206, octstr_get_cstr(interface_name));  * 
vcard/wtls */
gw/bb_udp.c:    /* add_service(9207, octstr_get_cstr(interface_name));  * 
vcal/wtls     */

I guess I have to change these. But what about these:

gw/wap_push_ota.h:#define CONNECTED_PORT 9201;
gw/wap_push_ppg.h:    CONNECTIONLESS_SERVPORT = 9200,
gw/wap_push_ppg.h:    CONNECTED_CLIPORT = 9209,
gw/wap_push_ppg.h:    CONNECTED_SERVPORT = 9201
wap/wap.c:#define CONNECTIONLESS_PORT 9200

I couldn't tell from the sources, what they are good for and as I said, my 
knowlege of the WAP-protocol is very limited.

Could you tell me which of these lines I have to change to be able to connect 
to the gateway on a different port, which I specify in my phone? Wouldn't it 
be good to make this configurable over a config-option?

Oh, and I'm using version 1.1.5 as that's the one in the debian archive.

Thanks, Gerrit
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.