SMPP – read SMS over SMPP Teltonika TRB140

Hello,

exist any document of implementation SMPP in Teltonika devices please?

In our solution sending SMS from Teltonika devices works as expected but read incoming SMS don’t work but we don’t know why.

Other SMPP devices (out of Teltonika brand) works normally.

Is it any special solution in Teltonika out of standard SMPP?

Exist someone who use it and it is works without problems?

We can’t properly read incomed SMS over SMPP. We use perl library NET::SMPP. For send and read SMS we use AnyEvent (periodic). Read SMS we use method read_pdu().
But this solution cannot read new SMSs from gateway (Teltonika TRB140) but over web interface is SMS available and marked as has been read.

Thank you!

Hello,

We do have an SMPP configuration example using the N3uron software and also on how to set up the device to work as an SMPP server, here’s the link: N3uron Notifier - Teltonika Networks Wiki

Regards,
M.

Hello MatasR,

thank you for your answer but settings is correct:

I ideally need working example (any programming language).

Thank you

@netservice Hello,

I’ve tested both, SMS sending and receiving with SMPP on RUTX50 running RUTX_R_00.07.14.2 firmware and it seems to work fine. I am attaching a working Python script.
smppsend1.zip (1.3 KB)

The script does both - sends and receives SMS messages.

SMPP settings:

Alternatively, you can run the service from CLI with debug:

Script arguments used for testing:
python3 smppsend1.py -m "testingSMPP" -n 00370XXXXXX85 --user admin --password somepass --host 192.168.50.1

The above command will send an SMS message. The script will also continue to run and receive SMS.
However, there is a nuance that the SMS message sent to the router must have a specific format (so the SMPP service knows where to forward the SMS): <id>:<message>

Screenshot for reference:

smppsend1.py received SMS:
image

So not all SMS messages are forwarded back (ID needs to be specified). If you want to read all the received SMS messages, then RUTOS API (/messages/status endpoint) would be a better option:
https://developers.teltonika-networks.com/reference/trb140/7.14.3/v1.6.3/messages#get-messages-status

Hope this helps!

Kind Regards,

Hello @AndzejJ ,

Thank you so much for your example,details and explanation!

I’ll try it and let you know.

Hello @AndzejJ ,

we checked again our solution and I think that problem is in your implementation (forwarding).

Why is important send SMS specifically to user ID?

Because for SMPP communication is available only one user for setup.

Generally in other solutions what we know - what is received (SMS) is available on gateway globally. Without specific format of SMS:

<id>:<message>

if I understood correctly.

Is it possible to set up the system to forward every SMS to SMPP users in general and thus be available globally?

Thank you!

Or only possible way is API? For globally read all received SMS to gateway.

@netservice Hello,

The SMPP forwarding feature was developed some time ago. Back then, it was necessary to implement it with client IDs to distinguish between SMS messages for the various internal services that needed to process them (among other reasons).

While that original implementation remains, there are no plans to change it due to low demand.
Generally, the demand has shifted towards more modern solutions, and as a result, the API has become the more popular and powerful alternative for various kind of integrations.

The API is now the generally recommended method, and it will allow you to retrieve all SMS messages.

Kind Regards,

Hello @AndzejJ ,

thank you for your answer. I understand.

Best Regards

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.