Page 1 of 1

bSuccess false on evConnected

Posted: Mon May 11, 2015 1:50 pm
by Gilboy
Hi,

I use SMPP client on two different SMSC.
So I instanciated two SMPP clients.
All is OK but sometimes event evDisconnected is fired by one of the SMSC disconnection.

I added some code to reconnect in that particular case.
The trouble is that in my "connected" event manager the parameter "bSuccess" is false :

Code: Select all

private static void ClientSmppConnected(object sender, bool bSuccess)
So I can not call Bind method.

If I execute "netstat -n" on my server, I can see that socket on first SMSC is OK (up, alive) and the one on which "disconnected" event was fired is not OK.

Can you explain me how to keep my SMSC connections alive or how to reconnect again after event "evDisconnected" is fired ?

Thank you.

Re: bSuccess false on evConnected

Posted: Fri May 15, 2015 5:51 pm
by alt
Hi Gilboy,

When you receive bSuccess = false it means that client fo this moment cannot establish connection with remote side and you need to try to reconnect some time later.
Do you know the reason of disconnection? What do you see in log file before disconnection?

Possible you need to send enquire link to SMSC.
https://docs.inetlab.com/smpp/v1/articl ... _link.html