My goal is to be able to serve up WAP pages and download Java MIDlets that I develop to my cell phone. I can only provision my Samsung using OTA. I tried using just Apache with all the wap and MIDlet MIME types installed, but I keep getting "Bad Gateway" on my cell phone when I try to access my Apache server. I have a Samsung E715 and T-Mobile as my carrier. My ISP (Cox) blocks port 80 for my web server, so I am forced to use a different port to serve up html and wap. I have a test wap page at http://wap.pmi6.com/mobile2/java.wml with links to the jad and jar file for a simple HelloWorld MIDlet.
1. Am I correct in thinking that I need to use Kannel?
Assuming the answer is yes, I have the following:
1. Installed the latest version of Kannel from .debs on the same machine that has Apache
2. Created /etc/kannel/kannel.conf based on the example file in the documentation (see below for the file)
3. I opened ports 9200-9207 on my router.
How do I "connect" kannel and apache? I think I use the box-allow-ip entry in the configuration, but there must be more than that. How does Apache know to send pages to kannel versus to serve them up directly? This is way to auto magical for me!
How do I access wap pages through kannel? Through my IP address and port 9200?
I read through the OTA section in the user guide, but I must admit I do not understand all of it. It seems to say that I need to also use SMS in kannel for OTA, but I have not run across that idea in my other readings regarding OTA on the Java.sun site. In fact, all I have come across is how to use Apache, and all that is described is setting the correct MIME types and it should work.
Thanks for any insights you can give me!
Mark
------------------/etc/kannel/kannel.conf--------------------- group = core admin-port = 13000 admin-password = bar #status-password = foo #admin-deny-ip = "" #admin-allow-ip = "" #log-file = "/tmp/kannel.log" #log-level = 0 #access-log = "access.log" #http-proxy-host = "127.0.0.1" #http-proxy-port = 8080 #http-proxy-exceptions = "127.0.0.1" #http-proxy-username = "user" #http-proxy-password = "password" #ssl-certkey-file = "mycertandprivkeyfile.pem"
# Wapbox related group = wapbox wapbox-port = 13002 bearerbox-host = localhost wdp-interface-name = "*" log-file = "/log/kannel/wapbox.log" access-log = "/log/kannel/wapaccess.log" syslog-level = none
