Tried again with URL
/cgi-bin/sendota?username=XXXX&password=XXXX&to=20121749664&type=oma-set tings&from=111&pin=1234&sec=userpin&text=%3C%3Fxml+version%3D%221.0%22%3 F%3E%3C%21DOCTYPE+WAP-PROVISIONINGDOC+PUBLIC+%22-%2F%2FWAPFORUM%2F%2FDTD +PROV+1.0%2F%2FEN%22+%22http%3A%2F%2Fwww.wapforum.org%2FDTD%2Fprov.dtd%2 2%3E%3CWAP-PROVISIONINGDOC+VERSION%3D%221.0%22%3E%3CCHARACTERISTIC+TYPE% 3D%22BOOTSTRAP%22%3E%3CPARM+NAME%3D%22NAME%22+VALUE%3D%22MOBINIL+WAP%22% 2F%3E%3C%2FCHARACTERISTIC%3E%3CCHARACTERISTIC+TYPE%3D%22NAPDEF%22%3E%3CP ARM+NAME%3D%22NAME%22+VALUE%3D%22MOBINIL+WAP%22%2F%3E%3CPARM+NAME%3D%22N APID%22+VALUE%3D%22MOBINIL_WAP_NAPID%22%2F%3E%3CPARM+NAME%3D%22BEARER%22 +VALUE%3D%22GSM-GPRS%22%2F%3E%3CPARM+NAME%3D%22NAP-ADDRESS%22+VALUE%3D%2 2MOBINILWAP%22%2F%3E%3CPARM+NAME%3D%22NAP-ADDRTYPE%22+VALUE%3D%22APN%22% 2F%3E%3CPARM+NAME%3D%22INTERNET%22%2F%3E%3C%2FCHARACTERISTIC%3E%3C%2FWAP -PROVISIONINGDOC%3E XML 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.0"> <CHARACTERISTIC TYPE="BOOTSTRAP"> <PARM NAME="NAME" VALUE="MOBINIL WAP"/> </CHARACTERISTIC> <CHARACTERISTIC TYPE="NAPDEF"> <PARM NAME="NAME" VALUE="MOBINIL WAP"/> <PARM NAME="NAPID" VALUE="MOBINIL_WAP_NAPID"/> <PARM NAME="BEARER" VALUE="GSM-GPRS"/> <PARM NAME="NAP-ADDRESS" VALUE="MOBINILWAP"/> <PARM NAME="NAP-ADDRTYPE" VALUE="APN"/> <PARM NAME="INTERNET"/> </CHARACTERISTIC> </WAP-PROVISIONINGDOC> Testing with Nokia6300 Device but I receive the message on the mobile "Unable to save settings. Settings discarded" I'm using Kannel Version 1.4.1 I think there is something wrong with the security model sec and pin parameters during message encoding in kannel as series 40 2nd edition of Nokia devices will totally discard the message if no security model is implemented in message encoding. Any suggestions, Best Regards -----Original Message----- From: Adrian Silva [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 11:32 AM To: [email protected] Subject: Re: OMA-Seetings "Remon Magdy" <[EMAIL PROTECTED]> writes: > > the XML document is > > <wap-provisioningdoc> [...] > </wap-provisioningdoc> > I guess kannel isn't identifying your xml as a valid oma setting, applies the default xml compiler and sends gibberish to the N70. My working samples and the ones included in the oma spec begin with the xml and doctype declaration tags: <?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.0"> [...] I did some testing with your xml. With xml and Doctype tags the settings are received and identified, without them i receive just a notification of invalid settings. (nokia 6020) > > Also if someone can tell me how can i send OMA Settings as a binary message > using the normal sendsms API it will be very helpful. > You can have a look at kannel sources. gw/ota_prov.c can provide some insight on the udh data and extra binary headers you must append to your binary payload. Good luck -- Adrian Silva Franco Visualtis - Desarrollo de sistemas. Cl Saavedra Fajardo, 5 -entlo.5 30001 Murcia Tlf +34 968 900 248 Fax +34 968 900 490 mailto:[EMAIL PROTECTED] http://www.visualtis.com
