Discussion:
Kannel OTA malforms package with certain XML
Kasper Nielsen
2018-01-23 16:49:50 UTC
Permalink
When sending this XML from NowSMS, everything works:

var xml = ' \
<?xml version="1.0"?> \
<!DOCTYPE wap-provisioningdoc PUBLIC "-//WAPFORUM//DTD PROV 1.0//EN" "
http://www.wapforum.org/DTD/prov.dtd"> \
<wap-provisioningdoc> \
<characteristic type="BOOTSTRAP"> \
<parm name="NAME" value="APN TEST"/> \
</characteristic> \
<characteristic type="NAPDEF"> \
<parm name="NAME" value="APN Test"/> \
<parm name="NAPID" value="APN_Test_NAPID"/> \
<parm name="BEARER" value="GSM-GPRS"/> \
<parm name="NAP-ADDRESS" value="internet"/> \
<parm name="NAP-ADDRTYPE" value="APN"/> \
<parm name="INTERNET"/> \
</characteristic> \
</wap-provisioningdoc> \

But Kannel resolves in a SMPP malformed packaged due to this single line:

<parm name="NAP-ADDRESS" value="internet"/> \

If I remove this single line Kannel are able to ship the SMS without errors.

Googling seems the OMA standard does allow this line. What can the error be?
I have tried to type the line manually, avoiding any special characters
from copy-paste.
Kasper Nielsen
2018-01-24 09:19:22 UTC
Permalink
I'm running Kannel 1.4.4 and saw the Kannel 1.5 had some fixed to the OTA
compiler - perhaps that would fix the issue.
But are there any Debian packages ready for Kannel 1.5?
Post by Kasper Nielsen
var xml = ' \
<?xml version="1.0"?> \
<!DOCTYPE wap-provisioningdoc PUBLIC "-//WAPFORUM//DTD PROV 1.0//EN" "
http://www.wapforum.org/DTD/prov.dtd"> \
<wap-provisioningdoc> \
<characteristic type="BOOTSTRAP"> \
<parm name="NAME" value="APN TEST"/> \
</characteristic> \
<characteristic type="NAPDEF"> \
<parm name="NAME" value="APN Test"/> \
<parm name="NAPID" value="APN_Test_NAPID"/> \
<parm name="BEARER" value="GSM-GPRS"/> \
<parm name="NAP-ADDRESS" value="internet"/> \
<parm name="NAP-ADDRTYPE" value="APN"/> \
<parm name="INTERNET"/> \
</characteristic> \
</wap-provisioningdoc> \
<parm name="NAP-ADDRESS" value="internet"/> \
If I remove this single line Kannel are able to ship the SMS without errors.
Googling seems the OMA standard does allow this line. What can the error be?
I have tried to type the line manually, avoiding any special characters
from copy-paste.
Loading...