Greetings.
I must have read every forum, mailing list as well as specifications
available on the net, still I can't seem to get this working.
I want to send imap/smtp/syncml configuration to a Nokia E52 phone using
Kannel.
I followed the simple guide available here:
http://mobiforge.com/developing/story/email-configuration-sms
When I use type="settings" at least the configuration-sms is received on
the phone, trying to open it however it always
tells me the format is incorrect.
If instead using type "oma-settings" to my understanding correct in
order to send a OMA CP 1.1 nothing happens
on the phone.
In both cases from the bearerbox output it seem the configuration
message is sent to the device.
I have created simple html-from where I paste xml data and see that the
text is correctly url-endoded when sent to kannel.
I'm using a ordinary 3g modem (huawei E180) to send the messages.
Could the provider (Telia -- Sweden) be blocking the messages ?
The XML-data is taken from the Nokia "Series 60 Developer Platform 2.0:
OMA Client Provisioning" document
<?xml version="1.0"?>
<!DOCTYPE wap-provisioningdoc PUBLIC "-//WAPFORUM//DTD PROV 1.0//EN"
"http://www.wapforum.org/DTD/prov.dtd">
<wap-provisioningdoc version="1.1">
<characteristic type="APPLICATION">
<parm name="APPID" value="143"/>
<parm name="PROVIDER-ID" value="MyMail"/>
<parm name="NAME" value="IMAP box"/>
<parm name="TO-NAPID" value="Telia Internet"/>
<characteristic type="APPADDR">
<parm name="ADDR" value="my.mail.gw"/>
<characteristic type="PORT">
<parm name="PORTNBR" value="993"/>
<parm name="SERVICE" value="STARTTLS"/>
</characteristic>
</characteristic>
<characteristic type="APPAUTH">
<parm name="AAUTHNAME" value="user"/>
<parm name="AAUTHSECRET" value="password"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I have tried Kannel version 1.4.1 , 1.4.3 and now the latest development
snapshot.
my kannel.conf
<snip>
group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13004
admin-password = xxxx
log-file = "/services/auban.wehay.com/gateway/log/kannel.log"
log-level = 0
access-log = "/services/auban.wehay.com/gateway/log/access.log"
group = smsc
smsc = at
modemtype = auto
device = /dev/ttyUSB0
speed = 19200
pin = "1234"
group = smsbox
bearerbox-host = 0.0.0.0
sendsms-port = 13013
global-sender = 13013
log-file = "/services/auban.wehay.com/gateway/log/smsbox.log"
log-level = 0
access-log = "/services/auban.wehay.com/gateway/log/access.log"
group = wapbox
bearerbox-host = 127.0.0.1
log-file = "/services/auban.wehay.com/gateway/log/wapbox.log"
log-level = 0
access-log = "/services/auban.wehay.com/gateway/log/access.log"
## Telia sticka
group = modems
id = huawei_e180
name = "Huawei E180"
detect-string = "huawei"
init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
message-storage = "SM"
reset-string = "ATZ"
broken = true
group = sendsms-user
username = user
password = password
</snip>
Some output from bearerbox
<snip>
2011-03-02 19:33:03 [20209] [3] INFO: /cgi-bin/sendota: XML request for
target <076xxxxxxxxxx>
2011-03-02 19:33:03 [20209] [3] DEBUG: Octet string at 0x736e60:
2011-03-02 19:33:03 [20209] [3] DEBUG: len: 216
2011-03-02 19:33:03 [20209] [3] DEBUG: size: 1024
2011-03-02 19:33:03 [20209] [3] DEBUG: immutable: 0
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 01 06 2c 1f 2a 61 70 70
6c 69 63 61 74 69 6f 6e ..,.*application
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 2f 78 2d 77 61 70 2d 70
72 6f 76 2e 62 72 6f 77 /x-wap-prov.brow
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 73 65 72 2d 73 65 74 74
69 6e 67 73 00 81 ea 03 ser-settings....
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 0b 6a 00 c5 45 03 31 2e
31 00 01 c6 00 01 55 01 .j..E.1.1.....U.
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 87 36 00 00 06 03 31 34
33 00 01 87 00 01 38 00 .6....143.....8.
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 00 06 03 41 66 4d 61 69
6c 00 01 87 07 06 03 49 ...MyMail......I
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 4d 41 50 20 62 6f 78 00
01 87 22 06 03 54 65 6c MAP box..."..Tel
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 69 61 20 49 6e 74 65 72
6e 65 74 00 01 c6 00 01 ia Internet.....
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 56 01 87 34 00 00 06 03
74 77 67 77 2e 61 6d 73 V..4....twgw.xxx
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 2e 73 65 00 01 c6 53 01
87 23 06 03 39 39 33 00 .se...S..#..993.
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 01 87 24 06 03 53 54 41
52 54 54 4c 53 00 01 01 ..$..STARTTLS...
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 01 c6 00 01 57 01 87 31
00 00 06 03 69 73 72 6a ....W..1....xxxx
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 6f 00 01 87 00 01 32 00
00 06 03 70 61 73 73 77 x.....2....passw
2011-03-02 19:33:03 [20209] [3] DEBUG: data: 6f 72 64 00 01 01 01
01 ord.....
2011-03-02 19:33:03 [20209] [3] DEBUG: Octet string dump ends.
</snip>
Any help would be greatly appreciated.
Brgds
Jonas