1
Vote

Connecting Error

description

I am trying to send sms using jamaatech dll. but it is always showing connection state = connecting or close
    SmppClient client = new SmppClient();
    SmppConnectionProperties properties = client.Properties;
    properties.SystemID = "******";
    properties.Password = "*****";
    properties.Port = 5016; //IP port to use //5016  5106
    properties.Host = "*******";
    properties.SystemType = "SCP";
    properties.AddressTon = TypeOfNumber.Aphanumeric;
    properties.AddressNpi = 0;
    properties.SourceAddress = "Nubl";        
    properties.DefaultServiceType = "SMPP";
    properties.InterfaceVersion = InterfaceVersion.v34;
    properties.DefaultEncoding = DataCoding.SMSCDefault;

    //properties.DefaultServiceType = "SMPP"; //ServiceType.DEFAULT;
    //properties.DefaultServiceType = "SCP";

    //Resume a lost connection after 30 seconds
    client.AutoReconnectDelay = 3000;
    //Send Enquire Link PDU every 15 seconds
    client.KeepAliveInterval = 5000;

   client.Start();
    string Connectionstate;
    if (client.ConnectionState == SmppConnectionState.Connected)
        Connectionstate = "";
connection state is always connecting

comments