Cannot connect to SMSC

Smpp v3.4 client

Moderator: alt

Locked
guro
Posts: 3
Joined: Tue Aug 25, 2009 1:01 pm

Cannot connect to SMSC

Post by guro » Tue Aug 25, 2009 1:13 pm

Hello.

I have problem with connecting to SMSC. Here is my source code:

Code: Select all

client.AddrNpi = 1;
client.AddrTon = 1;
client.SystemType = "";

client.Connect(<ip address>, <port>);
I don't get any messages, just have client.Status == ConnectionStatus.Closed.

I'm sure that all data is correct and that SMSC is available. May be I should set some other parameters? May be I do something wrong?

P.S. I have the latest version of library.

Please help. Thanks.
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Wed Aug 26, 2009 5:51 am

Please try to connect with method

Code: Select all

 public bool Connect(IPEndPoint endPoint)
Also please check your network setting, especially if you have 2 network cards in machine.

Please attach to event

Code: Select all

client.evError		+=new ALT.SMS.SmppClient.ErrorEventHandler(client_evError);
it should display error message if something goes wrong.
guro
Posts: 3
Joined: Tue Aug 25, 2009 1:01 pm

Post by guro » Wed Aug 26, 2009 9:49 am

I tired to connect with both overloads of Connect method. Results are the same.

I have 1 network card, and can ping destination server.

I created handler for Error event, but there is no error and program don't rich this code.

May be you can advise me any tools that will allow to monitor which messages my program send to server and which responses it received (I'm working with 2775 port).
guro
Posts: 3
Joined: Tue Aug 25, 2009 1:01 pm

Post by guro » Thu Aug 27, 2009 1:59 pm

My issue was solved :)

I don't know why, but SMSC has banned my IP-adress.

Thanks for all.
Locked