Kasper Nielsen
2018-01-23 16:49:50 UTC
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.
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.