Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JamaaTech.Smpp.Net.Lib.Util.SMSCDefaultEncoding Exception #4

Closed
miloja99 opened this issue Jul 5, 2017 · 3 comments
Closed

JamaaTech.Smpp.Net.Lib.Util.SMSCDefaultEncoding Exception #4

miloja99 opened this issue Jul 5, 2017 · 3 comments

Comments

@miloja99
Copy link

miloja99 commented Jul 5, 2017

Im trying to send sms with my gateway 2N VoiceBlue Next , using default SMSC encoding not working, using any other enconding the message is dispatched but rejected by the Celullar Network. Seems like something is wrong in my code. I suspect about enconding but cant use SMSCDefault.
Using 1.5.2 version of your library.

        SmppClient client = new SmppClient();
      try
        {
            SmppConnectionProperties properties = client.Properties;
            properties.SystemID = systemId;
            properties.Password = password;
            properties.Port = port;
            properties.Host = server;
           properties.AddressNpi = JamaaTech.Smpp.Net.Lib.NumberingPlanIndicator.Unknown;
            properties.AddressTon = JamaaTech.Smpp.Net.Lib.TypeOfNumber.Unknown;
           properties.DefaultEncoding = JamaaTech.Smpp.Net.Lib.DataCoding.SMSCDefault;
           client.AutoReconnectDelay = 3000;
            client.KeepAliveInterval = 15000;
            client.Start();

            if (client.ConnectionState != SmppConnectionState.Connected) client.ForceConnect(5000);

           TextMessage msg = new TextMessage();
            msg.DestinationAddress = recipient;
            msg.Text = text;
            msg.RegisterDeliveryNotification = false;                
            if (client != null)
            {
                client.SendMessage(msg);    <---------- exception here with SMSCDefault
                client.Shutdown();
            }
@AdhamAwadhi
Copy link
Owner

Can you get the whole exception details?

@zh4r0nax
Copy link

i think DataCoding.ASCII

AdhamAwadhi pushed a commit that referenced this issue Aug 17, 2017
@embula
Copy link

embula commented Dec 12, 2019

I've integrated but the application throws an exception after sending 3-5 SMS. I'm getting the exception below

Bind Operation failed. PDU receive operation timed out

Any ideas on how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants