OnEnquireLink and SMPPCLIENT_RCVTIMEOUT

Smpp v3.4 client

Moderator: alt

Locked
ceezed
Posts: 13
Joined: Wed Oct 29, 2008 1:08 pm

OnEnquireLink and SMPPCLIENT_RCVTIMEOUT

Post by ceezed » Sun Nov 09, 2008 2:04 am

If there is a timeout sending the EnquireLink, the evEnquireLink event is not fired. Instead, you just stop the EnquireLink timer and we have no idea what has happened.
Can you please fire the evEnquireLink if the EnquireLink times-out?
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Tue Nov 18, 2008 6:52 pm

EnquireLink waits response exactly a number of msec defined in Timeout property of the SmppClient class.
evEnquireLink fires when SMSC sends EnquireLink request.

If you use internal enquire link then in case when EnquireLink timeout
smpp client disconnects. You need to attach a evDisconnect event and reconnect the client.
ceezed
Posts: 13
Joined: Wed Oct 29, 2008 1:08 pm

Post by ceezed » Fri Nov 21, 2008 3:36 am

Please refer to SendEnquireLink(object stateInfo) in SmppClient.cs ....

if (res.Status != CommandStatus.ESME_ROK)
{
StopEvent.Set();
StopEnquireLinkTimer();
return;
}

You just kill the timer and nothing else happnes (e.g. I am not seeing evDisconnect event get fired).

Perhaps you can fire some event to let us know that the call to EnquireLink failed?
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Fri Nov 21, 2008 3:39 pm

Here I also stop the client and it disconnects. I think that we have network problem when we don't get EnquireLink response. In this situation I'm just trying to reconnect the client.

Is it sufficient for you to get evDisconnect event fired?
ceezed
Posts: 13
Joined: Wed Oct 29, 2008 1:08 pm

Post by ceezed » Sun Nov 23, 2008 2:40 am

Yes, it would be fine for evDisconnect event to be fired.
Please let us know when that might be available.
ceezed
Posts: 13
Joined: Wed Oct 29, 2008 1:08 pm

Post by ceezed » Mon Dec 01, 2008 11:31 am

Has this been fixed yet?
If not, please let me know when it might be available.
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Tue Dec 02, 2008 10:11 am

When you get EnquireLink timeout it raises evDisconnect event.
Please download last version and check this.
Locked