response for evClientSubmitSm handler

Post Reply
htinnyo
Posts: 12
Joined: Mon Feb 03, 2020 3:41 pm

response for evClientSubmitSm handler

Post by htinnyo » Tue Apr 28, 2020 5:57 am

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
shane
Posts: 5
Joined: Tue Apr 28, 2020 6:43 am

Re: response for evClientSubmitSm handler

Post by shane » Wed Apr 29, 2020 12:27 am

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.
htinnyo
Posts: 12
Joined: Mon Feb 03, 2020 3:41 pm

Re: response for evClientSubmitSm handler

Post by htinnyo » Wed Apr 29, 2020 4:06 am

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.
htinnyo
Posts: 12
Joined: Mon Feb 03, 2020 3:41 pm

Re: response for evClientSubmitSm handler

Post by htinnyo » Thu Apr 30, 2020 3:58 am

Hello, could you please help me. I am a subscriber. Thanks
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: response for evClientSubmitSm handler

Post by alt » Thu Apr 30, 2020 6:58 am

Do you see in wireshark that response was sent to the client?
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: response for evClientSubmitSm handler

Post by alt » Thu Apr 30, 2020 7:08 am

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
htinnyo
Posts: 12
Joined: Mon Feb 03, 2020 3:41 pm

Re: response for evClientSubmitSm handler

Post by htinnyo » Thu Apr 30, 2020 12:16 pm

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.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: response for evClientSubmitSm handler

Post by alt » Thu Apr 30, 2020 12:36 pm

is library logging enabled in your application?
which library version are you using?
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: response for evClientSubmitSm handler

Post by alt » Thu Apr 30, 2020 12:38 pm

can you send wireshark file to support@ ?
Post Reply