Giter Club home page Giter Club logo

Comments (15)

robinc001 avatar robinc001 commented on August 24, 2024

This is happening when more than 160 character is sending. because 160 character is considered as 1 credit. so more than one credit messages are coming as two messages. Why this is happening. Please help me to resolve this issue.

from ksmppd.

kneodev avatar kneodev commented on August 24, 2024

no logs or examples provided. please take time to create issues if you expect help with them

from ksmppd.

robinc001 avatar robinc001 commented on August 24, 2024

Hi,

Please find the logs below:

This is the log of actual message sent from the smpp user

2017-05-12 16:45:09 Sent SMS [SMSC:Mysmsc] [SVC:] [ACT:] [BINF:2] [FID:334dea13-0ef0-478b-b089-666f2cae6d50] [META:] [from:myid] [to:91xxxxxx] [flags:-1:0:-1:-1:19] [msg:181:hi this is a test message for showing the error of double entry at the smpp operator while sending more than 160 credit from the smpp users. please check this issue and rectify it. ] [udh:0:]

Log of the same message received at the smpp server

2017-05-12 16:43:48 Sent SMS [SMSC:Mysmsc] [SVC:smppusera] [ACT:] [BINF:2] [FID:1173492472] [META:?smpp?] [from:myid] [to:91xxxxx] [flags:-1:0:-1:0:19] [msg:153:hi this is a test message for showing the error of double entry at the smpp operator while sending more than 160 credit from the smpp users. please check] [udh:6:050003210201]
2017-05-12 16:43:48 Sent SMS [SMSC:Mysmsc] [SVC:smppusera] [ACT:] [BINF:2] [FID:] [META:?smpp?] [from:myid] [to:91xxxxxx] [flags:-1:0:-1:0:0] [msg:28: this issue and rectify it. ] [udh:6:050003210202]

From the above two logs you can see that one message came as two entries at the smpp server.

from ksmppd.

kneodev avatar kneodev commented on August 24, 2024

what is the problem? I can see a 181 character message being split correctly with udh

single submit_sm limit is 160 7 bit chars

from ksmppd.

robinc001 avatar robinc001 commented on August 24, 2024

from ksmppd.

kneodev avatar kneodev commented on August 24, 2024

it is not a single message. it is two messages combined into one

You can read about sms here https://en.wikipedia.org/wiki/SMS#Message_size

from ksmppd.

robinc001 avatar robinc001 commented on August 24, 2024

Yes it is being treated as single message with two credit. At the smpp user side it is treated as single message with udh =0

2017-05-12 16:45:09 Sent SMS [SMSC:Mysmsc] [SVC:] [ACT:] [BINF:2] [FID:334dea13-0ef0-478b-b089-666f2cae6d50] [META:] [from:myid] [to:91xxxxxx] [flags:-1:0:-1:-1:19] [msg:181:hi this is a test message for showing the error of double entry at the smpp operator while sending more than 160 credit from the smpp users. please check this issue and rectify it. ] [udh:0:] ...

but as soon as it reaches the smpp server it splits into two messages with two different udh. Is it not possible to treat the messsage as a single message as it is sent from the smpp user. ?

from ksmppd.

robinc001 avatar robinc001 commented on August 24, 2024

At present there is a message and credit mismatch at the server and user side due to this situation.

from ksmppd.

kneodev avatar kneodev commented on August 24, 2024

you need to tell your customer to calculate parts correctly

ksmppd does it properly, it correctly charges for 2 parts, your customer must fix their system

from ksmppd.

robinc001 avatar robinc001 commented on August 24, 2024

They are using kannel only. And they using the php code to send the message. In that they have given the multiples of 160 character to calculate the credit. You can see BINF : 2 . That shows It is of two credits.

from ksmppd.

kneodev avatar kneodev commented on August 24, 2024

so if your customer thinks its 2 parts, ksmppd thinks its 2 parts and kannel thinks its 2 parts, what is the problem?

from ksmppd.

robinc001 avatar robinc001 commented on August 24, 2024

See... at the smpp server it comes as two messages .. so total BINF = 4 .. So it is calculated as 4 credits instead of 2.

2017-05-12 16:43:48 Sent SMS [SMSC:Mysmsc] [SVC:smppusera] [ACT:] [BINF:2] [FID:1173492472] [META:?smpp?] [from:myid] [to:91xxxxx] [flags:-1:0:-1:0:19] [msg:153:hi this is a test message for showing the error of double entry at the smpp operator while sending more than 160 credit from the smpp users. please check] [udh:6:050003210201]
2017-05-12 16:43:48 Sent SMS [SMSC:Mysmsc] [SVC:smppusera] [ACT:] [BINF:2] [FID:] [META:?smpp?] [from:myid] [to:91xxxxxx] [flags:-1:0:-1:0:0] [msg:28: this issue and rectify it. ] [udh:6:050003210202]

from ksmppd.

kneodev avatar kneodev commented on August 24, 2024

BINF is never set by ksmppd or kannel anywhere, it is only propagated as supplied by an ESME

it is not calculated or considered by ksmppd or kannel, your client is setting this field

from ksmppd.

robinc001 avatar robinc001 commented on August 24, 2024

from ksmppd.

kneodev avatar kneodev commented on August 24, 2024

where is it getting doubled?

I see 2 messages being received in 1 packet, then 2 messages being sent with correct udh applied

I'm not sure i can make it any clearer. an SMS cannot be longer than 160 characters, if it is, it is more than one.

from ksmppd.

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.