Git Product home page Git Product logo

Comments (7)

chouex avatar chouex commented on July 19, 2024

data_coding: 0 is SMSC Default Alphabet (SMPP 3.4) (it may be ISO-8859-1, ASCII, GSM 7-bit default alphabet)
maybe a option set default charset of data_coding: 0 is better

The meaning of the data_coding=4 or 8 is the same as in SMPP 3.3. Other values in the range 1-15 are reserved in SMPP 3.3. Unfortunately, unlike SMPP 3.3, where data_coding=0 was unambiguously GSM 7-bit default alphabet, for SMPP 3.4 and higher the GSM 7-bit default alphabet is missing in this list, and data_coding=0 may differ for various Short message service centers—it may be ISO-8859-1, ASCII, GSM 7-bit default alphabet, UTF-8 or even configurable per ESME. When using data_coding=0, both sides (ESME and SMSC) must be sure they consider it the same encoding. Otherwise it is better not to use data_coding=0. It may be tricky to use GSM 7-bit default alphabet, some Short message service centers requires data_coding=0, others e.g. data_coding=241.

http://www.developershome.com/sms/gsmAlphabet.asp

https://en.wikipedia.org/wiki/Short_Message_Peer-to-Peer

from node-smpp.

chouex avatar chouex commented on July 19, 2024

i use this to correct encoding

pdu.short_message.message=defs.encodings.LATIN1.decode(defs.encodings.ASCII.encode(pdu.short_message.message));

from node-smpp.

hkulekci avatar hkulekci commented on July 19, 2024

I guess, something wrong in https://github.com/farhadi/node-smpp/blob/master/lib/defs.js#L1212-L1213 this line. What do you think?

Why IA5 and ASCII data encoding is the same? Encoding dont not work correctly on server side implementation? I changed the codes following and test on server side. I works but I am using my own GSM-7 encoder and decoder if data encoding is 1. @farhadi What is that mean?

    ENCODING: {
        ASCII:    0x00, 
        IA5:      0x01,
        LATIN1:   0x03,

from node-smpp.

chouex avatar chouex commented on July 19, 2024

i think it because data_coding: 0x00 ban be both ASCII and GSM 03.38, this library see 0x00 as GSM 03.38 while my smpp server see 0x00 as ASCII.

may be user should specify which encoding is when data_coding= 0x00

from node-smpp.

hkulekci avatar hkulekci commented on July 19, 2024

Hi @chouex , What change if we change this value as 0x00? Is something went wrong? I tested on 0x00, apperently, nothing changed.

from node-smpp.

farhadi avatar farhadi commented on July 19, 2024

@chouex I fixed this issue at 68288cb
Now you can change default encoding for data_coding:0 like this:

smpp.encodings.default = 'LATIN1';

@hkulekci I took encoding values from the spec (4.7.7 data_coding), duplicates are just alternative names.

from node-smpp.

hkulekci avatar hkulekci commented on July 19, 2024

Thank you @farhadi . I understand that, in fact, IA5 and ASCII has same code on smpp.

from node-smpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.