Git Product home page Git Product logo

Comments (7)

farhadi avatar farhadi commented on July 1, 2024

You can pass udh and message separately:

session.submit_sm({
  short_message: {
    udh: new Buffer('0605040B8423F0', 'hex')
    message: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY00'
  }
});

from node-smpp.

yepher avatar yepher commented on July 1, 2024

I assume the Node SMPP lib will automatically handle settings

These fields as needed?

data_coding: 245,
esm_class: 64,

from node-smpp.

farhadi avatar farhadi commented on July 1, 2024

When you provide a udh in your short_message parameter, esm_class will be automatically set to 0x40 (UDH_INDICATOR).
data_coding will also be automatically set to 0x01, 0x03, and 0x08 depending on the detected encoding of the message.

Other values for esm_class and data_coding should be handled manually.

from node-smpp.

masoodmehrabi avatar masoodmehrabi commented on July 1, 2024

I want to send Binary message but I receive
"command_status: 1078"

the code I am using is :
session.submit_sm({
short_message: {
source_addr: 'XXXXXXXXXXX',
destination_addr:'YYYYYYYYYYY',
udh: new Buffer('0605040B8423F0', 'hex'),
message: '02056A0045C60C037777772E6465762E6D6F62692F69735F66756E2E68746D6C0011033635333200070103446576446F744D6F62692069732046756E2021000101',

        }
    }, function(pdu) {
        console.log('binary callback')
        console.log(pdu);
       
        }
    });

can you address me to the problem ?

from node-smpp.

ritmas avatar ritmas commented on July 1, 2024

AFAIK error codes bigger than 255 (0x000000FF) is customly-defined by SMSC, so it's not SMPP standard. Can you share the full PDU?

from node-smpp.

masoodmehrabi avatar masoodmehrabi commented on July 1, 2024

thank you for your reply
this is the PDU:

PDU {
command_length: 16,
command_id: 2147483652,
command_status: 1078,
sequence_number: 6072,
command: 'submit_sm_resp' }

from node-smpp.

ritmas avatar ritmas commented on July 1, 2024

No, I don't see anything interesting.. If you have access to SMSC, try analyzing the logs there, catch network packets with wireshark & analyze them, maybe it would help you.

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.