Page 1 of 1

response for evClientSubmitSm handler

Posted: Tue Apr 28, 2020 5:57 am
by htinnyo
when does the library respond to client in evClientSubmitSmHandler.
what if the server failed to respond (confirmation) after client submit.

EDIT : because one of my client is not receiving confirmation after submit, but other clients are correctly receiving. please help

Re: response for evClientSubmitSm handler

Posted: Wed Apr 29, 2020 12:27 am
by shane
The library responds after your event handler completes. If your event handler throws an exception, a failure response is automatically sent.

To prevent an automatic response, set Response = null in the event args passed to your handler.

If you can't figure out what's going on, I recommend getting familiar with Wireshark (network packet inspection software). You can inspect each SMPP packet that is sent which might help you better understand the problem you're encountering.

Re: response for evClientSubmitSm handler

Posted: Wed Apr 29, 2020 4:06 am
by htinnyo
Thank you for response. In fact I do not want to disable Response.

1. I can see the response from tcpdump/wireshark but my client can submit but can not receive successful response from server.
2. my clients also can not receive inbound dlr receipt messages, server get RCVTIMEOUT error though I can see client is connected in server.ConnectedClients api.

1. any inbound port to open in client side?
2. in submithandler event, any error checking mechanism to catch if the client can not receive submit response from server?

BUT there are some clients who can receive both with no issue.

Thanks in advance.

Re: response for evClientSubmitSm handler

Posted: Thu Apr 30, 2020 3:58 am
by htinnyo
Hello, could you please help me. I am a subscriber. Thanks

Re: response for evClientSubmitSm handler

Posted: Thu Apr 30, 2020 6:58 am
by alt
Do you see in wireshark that response was sent to the client?

Re: response for evClientSubmitSm handler

Posted: Thu Apr 30, 2020 7:08 am
by alt
htinnyo wrote:
Wed Apr 29, 2020 4:06 am
2. in submithandler event, any error checking mechanism to catch if the client can not receive submit response from server?
You need to turn on library logging to see all errors.

https://docs.inetlab.com/smpp/v2.8/arti ... gging.html

Re: response for evClientSubmitSm handler

Posted: Thu Apr 30, 2020 12:16 pm
by htinnyo
Do you see in wireshark that response was sent to the client?
Yes, I see the dlr receive message was sent to client in wireshark, but I see in my error logs that the Response.Header.Status is RCVTIMEOUT. after a couple of thousands of RCVTIMEOUT. the library was not sending response anymore (not sure why).

the same thing for submit response to client but this time I do not know the error because the event is directly handled and respond to client by library. after a while the library stopped responding to submit also.

Any limit/timeout for those responses ? Please help I already deployed to production and I need to fix urgently. Thank you in advance.

Re: response for evClientSubmitSm handler

Posted: Thu Apr 30, 2020 12:36 pm
by alt
is library logging enabled in your application?
which library version are you using?

Re: response for evClientSubmitSm handler

Posted: Thu Apr 30, 2020 12:38 pm
by alt
can you send wireshark file to support@ ?