Skip to content
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

sent and delivered events fired for same sms multiple times #11

Open
poonamkumariasp opened this issue Jan 31, 2018 · 6 comments
Open

Comments

@poonamkumariasp
Copy link

I am facing another issue now. I am getting sent and delivered events fired for same sms multiple times.
How can I stop that? How to tell the server that i have got it and please stop duplicating now.

Please help.

Thanks a lot,
Poonam

@AdhamAwadhi
Copy link
Owner

When the SMS is long (> 140 for ASCII, > 70 for Unicode) it is fired for every parts.

@poonamkumariasp
Copy link
Author

It is happening for short sms also.

@AdhamAwadhi
Copy link
Owner

AdhamAwadhi commented Mar 12, 2018

Sorry for late response, I tried it and it's work normally as expected. I'm not sure but I expected you are registered with events multiple times.

@poonamkumariasp
Copy link
Author

Hi Adham,
I spoke to my sms provider. They said i need to send them an acknowledgement once I read the delivery notification. Currently, I am not sending them any acknowledgement that's why they keep sending me delivery notification multiple times. If possible can you please provide an example here on, how to send acknowledgement to the sms server. They need DeliverSm.

Thanks,
Poonam

@AdhamAwadhi
Copy link
Owner

I'm not sure what they need. What is the command and parameters they need?
If they want a response for DeliverSm the SmppClient generate a response for them already and sent it to sms server.
If they want a custom command you can Inherits SmppClient and write a method to send a command they want, see SendMessage method

@poonamkumariasp
Copy link
Author

Hi Adham,

They want something like this: Deliver_sm - resp, Status: "Ok", Seq: 58.

They need this as an acknowledgement of message delivered or message sent notification..

For your reference:
Operation: Deliver_sm - resp (0x80000005)
Result: Ok (0x00000000)
Sequence #: 58

Thanks,
Poonam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants