-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UserMessageReference length #25
Comments
Hey, i have the same issue. Any way to fix it? Best Regads |
@sebafaro unfortunately I found no clean workaround, but you have two options:
Some providers accept a variable-length |
Thanks for your quick response. I need to obtain a response from the provider when the message is sent, so i can save it and check if was any failure. Sorry i'm a total newbie on SMPP. |
@sebafaro As for delivery, the There are, however, two tricky parts to these events that you should keep in mind to avoid a rare but very unpleasant bug. Each SMPP message has two IDs: one assigned by you ( So, to ensure a message has been delivered, you first have to find out it's ID from the Basically, you send a message and give it an ID of It's frustrating, but actually easy to work around by just storing the delivery facts somewhere until both IDs are known. |
Hello Adham,
I came across a strange behaviour in JamaaSMPP.
According to the SMPP 3.4 spec, the
user_message_reference
TLV can only be 2 bytes long:http://docs.nimta.com/SMPP_v3_4_Issue1_2.pdf
However, JamaaSMPP allows a string of arbitrary length to be passed and also adds an extra zero byte at the end:
https://github.com/AdhamAwadhi/JamaaSMPP/blob/master/JamaaTech.Smpp.Net.Client/TextMessage.cs#L70
My provider does not accept such a message and throws the
ESME_RINVPARLEN
error.Sending a message using only a single byte ID works as expected, but this is a hack and cannot be deployed to production.
Why does it work like that? Is there any fix or a workaround?
The text was updated successfully, but these errors were encountered: