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

Message validity period #46

Open
cholokla opened this issue Jul 14, 2020 · 6 comments
Open

Message validity period #46

cholokla opened this issue Jul 14, 2020 · 6 comments

Comments

@cholokla
Copy link

Hi,
firstly I'd like to thank you for your great library :)

I've got a question if it's possible to set validity period (smsc expiration time) for the message?

Greetings,
cholo

@MikeSafonov
Copy link
Owner

Hello @cholokla !

I will add abillity to set validity period in next release.

@MikeSafonov
Copy link
Owner

Try version 1.2.0

@cholokla
Copy link
Author

Thank you for the super fast response!

I've one question though - I'm using Auron SMPP simulator and can send a message but after a while connection with the simulator is being terminated - possibly, because my client is not sending "enquire_link" pdu.
Moreover, simulator is sending "enquire_link" frame which seems to not be understood by the library.

2020-07-21 23:42:39.496 INFO 35832 --- [ sim] c.c.smpp.impl.DefaultSmppSession : read bytes: [00000010000000150000000000000001] 2020-07-21 23:42:39.496 INFO 35832 --- [ sim] c.c.smpp.impl.DefaultSmppSession : received PDU: (enquire_link: 0x00000010 0x00000015 0x00000000 0x00000001) (body: ) (opts: ) 2020-07-21 23:42:39.505 WARN 35832 --- [ sim] c.c.smpp.impl.DefaultSmppSessionHandler : Default handling is to discard unexpected request PDU: (enquire_link: 0x00000010 0x00000015 0x00000000 0x00000001) (body: ) (opts: ) 2020-07-21 23:42:44.498 INFO 35832 --- [ sim] c.c.smpp.impl.DefaultSmppSessionHandler : Default handling is to discard an unexpected channel closed

Is there any way starter could handle (send/receive) enquire link pdu?

Regards,
cholo

@MikeSafonov
Copy link
Owner

Hi @cholokla
Thanks for your feedback.
The problem was in incorrect handling pdu requests (see 1c3830a).
I will try to release 1.2.1 fix asap

@MikeSafonov
Copy link
Owner

Hi @cholokla
Please try 1.2.1 version

@cholokla
Copy link
Author

Hi @cholokla
Please try 1.2.1 version

Great work, enquire_link is working correctly now, you are a boss! 🥇

Although I'm normaly using TRANSCEIVER mode I switched for the test to the TRANSMITTER_RECEIVER and had some wierd problems with the Auron SMPP simulator e.g. more than 2 sessions, self closing sessions etc.
Maybe it's a simulator error.

Simulator log below:
'[2020-07-29 10:59:48] Auron SMS Component: [AxSms64.dll 6.5.4.701 (64bit)]
[2020-07-29 10:59:48] ! This is the freeware version of the SMPP Server API. Every [10nth] message will be replaced by a marker SMS.
[2020-07-29 10:59:48] ! Please purchase the SMS Component for full functionality. Find more information here: www.auronsoftware.com
[2020-07-29 10:59:48] Starting dispatcher thread...
[2020-07-29 10:59:48] Listening on IPv6 port: [2775]; IP: [Any]
[2020-07-29 10:59:48] Listening on IPv4 port: [2775]; IP: [Any]
[2020-07-29 11:00:04] Connecting session: [127.0.0.1], Port: [63932]; Running [1] simultaneous sessions
[2020-07-29 11:00:04] Connecting session: [127.0.0.1], Port: [63933]; Running [2] simultaneous sessions
[2020-07-29 11:00:09] Connecting session: [127.0.0.1], Port: [63942]; Running [3] simultaneous sessions
[2020-07-29 11:00:09] Removing disconnected session: [127.0.0.1], Port: [63933]; system id: [test]
[2020-07-29 11:01:09] Removing disconnected session: [127.0.0.1], Port: [63932]; system id: [test]
[2020-07-29 11:01:39] Connecting session: [127.0.0.1], Port: [64033]; Running [2] simultaneous sessions
[2020-07-29 11:01:39] Removing disconnected session: [127.0.0.1], Port: [63942]; system id: [test]
[2020-07-29 11:02:10] Removing disconnected session: [127.0.0.1], Port: [64033]; system id: [test]
[2020-07-29 11:02:13] Stopping dispatcher thread...
[2020-07-29 11:02:13] Stopped dispatcher thread'

Application log:
application.log

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