SMPPclient connects and disconnects with ESME_RBindFail

Smpp v3.4 client

Moderator: alt

Locked
ashish45
Posts: 13
Joined: Wed Sep 23, 2009 5:58 am

SMPPclient connects and disconnects with ESME_RBindFail

Post by ashish45 » Wed Mar 17, 2010 4:07 am

Hi there,
I have this issue at the moment.. When i try connecting to a telco it connects and straight away disconnects with ESME_RBINDFAIL status. Although the same code works fine with the other telco operators.. Its just with one telco operator it is giving issues.. We have confirmed the configuration settings with the telco operator. We have a legacy application (which is not using this control) on linux box and it works fine. But when we try connecting using the SMPPClient control from a .NET application on Windows box it doesn't work.. Please help .. I am on a very tight deadline at the moment.


4:51:22 p.m.: SmppClient connected
4:51:22 p.m.: Binding SmppClient for SystemId: MessageMediaSMS
4:51:22 p.m.: Bad status returned during Bind : BindTransceiverResp with status ESME_RBINDFAIL
4:51:22 p.m.: Sending Data: 0000003300000009000000000fe883274d6573736167654d65646961534d530050415353574f52440072656c61790034020100
4:51:22 p.m.: Received Data: 00000014800000090000000d0fe88327534d5300
4:51:22 p.m.: SmppClient disconnected
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Post by NickAskew » Wed Mar 17, 2010 10:13 am

Is your Linux based app currently bound when you attempt to bind via this component?
Does the troublesome telco support SMPP v3.4?
I had trouble binding with one of my providers and it turned out to be my IP address wasn't on the allow list for the SMPP server I was binding to - get your provider to analyze the request as you attempt it as they are best placed to tell you why their system disconnected you.
ProcessFlows UK Ltd
http://www.processflows.co.uk/
ashish45
Posts: 13
Joined: Wed Sep 23, 2009 5:58 am

Post by ashish45 » Wed Mar 17, 2010 9:03 pm

Hi Nick,
Thanks for your reply.. The private IP Address for both the boxes are different but when we make a request to the telco's both the boxes go out using the same IP address(our firewall does the trick.. ).

Yes you are right it only allows one connection at a time. So we disconnected the linux application and tried connecting using the windows application BUT still does not work..

I tried using another component from DevShock(.NET component) and it WORKED but our ALT.SMS.SMPPClient still doesn't work .. I still like our SMPPClient control from ALT and would like to continue using that.. Any ideas why I may not be able to connect using ALT.SMPPClient?
ashish45
Posts: 13
Joined: Wed Sep 23, 2009 5:58 am

Post by ashish45 » Wed Mar 17, 2010 9:04 pm

forgot to put the link for devshock component ... you can find it here ..

http://tnt64.blogspot.com/search/label/SMPP
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Post by NickAskew » Wed Mar 17, 2010 10:15 pm

Looks like you tried the obvious then, can't think of anything else to try :( All I can say is I'm successfully using it with mBlox, Hays, Sybase and AQL - what provider are you using? If they offer a trial account I'm more than happy to try and connect to it and see what response I get from it.
ProcessFlows UK Ltd
http://www.processflows.co.uk/
ashish45
Posts: 13
Joined: Wed Sep 23, 2009 5:58 am

Post by ashish45 » Thu Mar 18, 2010 1:49 am

Hi Nick,
I am using Telecom NZ and they only allow us to connect through a VPN. how do you connect to your telco's? Do most of the telco's only allow to send and receive using VPN? Sorry i am just new to this ..
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Post by NickAskew » Thu Mar 18, 2010 8:37 am

None of the providers I use insist on a VPN, the only security in place for the connection is a restriction on which IP address I am allowed to bind from.

Can't find Telecom NZ SMPP, all I keep finding is Routo Messaging, is this the provider they use for the SMPP?
ProcessFlows UK Ltd
http://www.processflows.co.uk/
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Thu Mar 18, 2010 8:55 am

ashish45
Posts: 13
Joined: Wed Sep 23, 2009 5:58 am

Post by ashish45 » Thu Mar 18, 2010 9:02 am

telecom NZ is a mobile operator in New Zealand. We connect to them directly using VPN.. I think that is the only way they allow us to connect.. Ofcouse on a static IP..
ashish45
Posts: 13
Joined: Wed Sep 23, 2009 5:58 am

Post by ashish45 » Thu Mar 18, 2010 10:12 am

hi alt,
i read the link you sent.. I did disconnect all the connections that it was using .. tried connecting and still gave the same problem .. connected with devshock control and that connected straight away.. any idea why this may be happening?
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Thu Mar 18, 2010 1:27 pm

Could you disconnect and wait 20-30 min before connection?

Can you provide log from Devshock control?
ashish45
Posts: 13
Joined: Wed Sep 23, 2009 5:58 am

Post by ashish45 » Fri Mar 19, 2010 2:23 am

Hi Alt,
Here's an extract from the log files while using SMPPClient and Devshock to connect to a telco. Please help ..


This is what i get while using ALT SMPP Client
-----------------------------------------------------------------
3:18:10 p.m.: SmppClient connected
3:18:10 p.m.: Binding SmppClient for SystemId: OurSystemID
3:18:10 p.m.: Bad status returned during Bind : BindTransceiverResp with status ESME_RBINDFAIL
3:18:10 p.m.: Sending Data: 0000003300000009000000004df44fa94d6573736167654d65646961534d530050415353574f52440072656c61790034020000
3:18:10 p.m.: Received Data: 00000014800000090000000d4df44fa9534d5300
3:18:10 p.m.: SmppClient disconnected
-------------------------------------------------------------------



This is What i get while connecting using DevShock control (connected Successfuly)

----------------------------------------------------

SmppBindReq 0000002e0000000200000000000000014d6573736167654d65646961534d530050415353574f5244000034000000
SmppBindRes 00000014800000020000000000000001534d5300

---------------------------------------------------
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Fri Mar 19, 2010 8:30 am

I think you need
client.Bind(tbSystemId.Text,tbPassword.Text,ConnectionMode.Transmitter)
ashish45
Posts: 13
Joined: Wed Sep 23, 2009 5:58 am

Post by ashish45 » Sun Mar 21, 2010 9:06 pm

Hi Alt,
It worked this time..We had tried this with the transmitter option before and did not work but this time it worked..

This particular telco only allows one connection at a time so we have to stop all the existing connections in order for this to work .. pain but it works..

Thanks Alt you are awesome..
Locked