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.
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
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.
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>
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.