Trying to get Jamaa SMPP to work ...

Sep 2, 2013 at 10:17 AM
Edited Sep 2, 2013 at 10:18 AM
I'm trying to get this library to work with my SMPP environment. Basically, I have code similar to this, based on the "Getting Started" chapter here:
SmppClient client = new SmppClient();
client.Properties.Host = _smsc_IP;            // some IP address
client.Properties.Port = _smsc_Port;          // some port number
client.Properties.SystemID = _smsc_User;      // a user name
client.Properties.Password = _smsc_Pwd;       // a password

client.Start();       // start the client

// create message, set some properties
TextMessage message = new TextMessage();
message.DestinationAddress = tbxRecipient.Text.Trim();
message.SourceAddress = _source;
message.Text = tbxMessage.Text.Trim();

// send message
client.SendMessage(message);
but this keeps causing an "Object not set to a reference of an object" exception...

When I debug into the Jamaa code, I see that on this method here:
public void SendMessage(ShortMessage message)
{
     SendMessage(message, vTrans.DefaultResponseTimeout);
}                
the vTrans variable is NULL - hence the NullReferenceException.

What am I missing? What more do I need to do in order to be able to send a simple SMS text message from my code?
Nov 16, 2016 at 2:31 PM
Hi

Did you solve it?

I tried with client.ForceConnect(); but I got an error "Bind operation failed".

Thanks.