Kannel OTA malforms package with certain XML

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Kannel OTA malforms package with certain XML

Kasper Nielsen
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.
Reply | Threaded
Open this post in threaded view
|

Re: Kannel OTA malforms package with certain XML

Kasper Nielsen
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?


On Tue, Jan 23, 2018 at 5:49 PM, Kasper Nielsen <[hidden email]> wrote:
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.