SMS via SMPP: How to determine number of parts in multipart sms - smpp

Im' sending sms messages via EasySmpp library (http://sourceforge.net/projects/easysmpp/). In case of messages over 160 characters long it internally uses data_sm command.
The question is how can I determine number of parts of sms message that arrives to the phone. My operator charges me per part so obviously I need that information.
Of course I can count it myself (message length / 160 or message length / 70 in case of UTF-8), but is there a better solution? Maybe smpp has a field for this?
m.

I had similar discussion with our SMS gateway provider yesterday. This is explained in detail here http://en.wikipedia.org/wiki/Short_Message_Service#Message_size

Related

How to receive message_payload using https://github.com/farhadi/node-smpp?

We are using node-smpp and struggling with receiving long (over 160 characters) messages from a SMPP sever. Does anyone have any idea if we should enable some option to get this message payload?

WhatsApp messages order

We are working on our chatbot that is connected to UIB. Some of our messages have a bit of a complex structure, and we need to split them up in order to send them in proper order. Consider, we have a single message that has the following content structure: <text><image><text>. In order to send this message to a WhatsApp user, we need to split the content into three messages (#1 <text>; #2 <image>; #3 <text>). If we send these messages one-by-one, in WhatsApp client we might receive these messages as in the order <text><text><image>, because posting images takes longer than posting text messages. We have a workaround (adding delay between requests) but images could be big in size, so it takes very long to send them. We could constantly increase delay, but it's not a good way to do such things.
So, my question is the following:
Is it possible to make a request to check the message status, whether it has been delivered to WhatsApp servers or not? Actually, it doesn't matter, whether the message were delivered to the end user, because users might be offline. We just need to know if the messages have been delivered to the WhatApp server in the proper order.
You'll get the read/delivery status in the webhook URL.
Please contact support#uib.ai for further clarifications.

Which ISO 8583 message type required for PIN Verification?

I would like to send a request to a Credit Card System to confirm if PIN is correct for a card.
I have an idea on
- How ISO 8583 messages are formatted and bitmap is populated.
- How to send an ISO8583 1100 to authorize my transaction request.
- How to send an ISO8583 1200 , to do actual transaction.
However I can't find ISO8583 message XXXX which I can use only to just verify PIN.
You should use message type 1100 and appropriate processing code (DE03). It’s depend on your host implementation, but in base ISO specification is for this purpose processing code “710000”.
You include data element 52 (and eventually 53 if you're using DUKPT) as part of your authorisation/financial message.

GSM Modem not able to receive SMS

i doing a simple application that able to integrate with GSM Modem to send and receive the SMS. i had completed the send SMS part, but i not able to receive the SMS. i get error message said that my SIM card memory is full when trying to send the SMS with other mobile device to my SIM card in the GSM Modem. i tried to use the AT command "AT+CMGL" to remove all the messages, but still same. May i know there are any method to store the message in my computer memory so that i able to receive the SMS with my GSM Modem. I using the sample code from here
http://www.codeproject.com/Articles/38705/Send-and-Read-SMS-through-a-GSM-Modem-using-AT-Com
The AT+CMGL command is for listing messages, not deleting them. Deleting messages is done with the AT+CMGD command. Do yourself a favour and download a copy of the 3GPP 27.005 standard, it defines all the standard sms AT commands (most other mobile phone AT commands are defined in 27.007), and by all means get a copy of the ITU standard V.250 which defines the basic command syntax, structure and behaviour for AT commands - an absolute must read for anyone that issues AT commands (read all of chapter 5 at least). These documents are more valuable than any random internet web site, including stackoverflow.
Speaking of random websites, the web page you linked as source seems to be of dubious value. It gives an example function DeleteMsg which issues AT+CMGF=1 but this command does in no way delete anything, it selects text or PDU mode for the various sms related commands.
It does have response handling that is better than the horrible send-sleep-read mistake that unfortunately is not as uncommon as it ought to be, but it is only half decent and not robust at all.
After sending an AT command to a modem you should continuously read and parse response lines from the modem (over and over again) until you receive a final result code (and not just once). See this answer for details.
All of the the message commands operate on the storage location set by AT+CPMS. And notice that you should always set <mem1> and <mem2> at the same time, e.g.
AT+CPMS="SM","SM"
It both makes little sense to only change one of mem1/mem2, and some phones do not like attempts to set only one of them.

How to determine number of clients listening for broadcasting?

I am using laravel 5.1 and I want to know how many clients are listening to a particular channel say Test-Channel. I want this number on server? Is there any way I can get it? Further I am using Broadcasting with Redis.
The link to broadcasting document is as follows:
Laravel 5.1 Event Broadcasting
There is command for this in redis. Check out PUBSUB NUMSUB:
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels.
And PUBSUB NUMPAT:
Returns the number of subscriptions to patterns (that are performed using the PSUBSCRIBE command). Note that this is not just the count of clients subscribed to patterns but the total number of patterns all the clients are subscribed to.
Edit: It's also worth noting that the PUBLISH command also returns number of receivers:
Return value
Integer reply: the number of clients that received the message.