Skip to content

ESME_RINVSRCADR When not setting Source Address #44

@danielckelly

Description

@danielckelly

The SMPP Service we use allows not setting the Source Address on the message and they use the default attached to the account.

I have confirmed this works using another SMPP Client Demo program

When I try to do the same, I get an Invalid Source Address error

Exception of type 'JamaaTech.Smpp.Net.Lib.SmppException' was thrown.

Error Code is : ESME_RINVSRCADR

If I replace the source address with the Mobile number, it works perfectly.

Below is the code to create the message.

TextMessage msg = new TextMessage();
msg.DestinationAddress = mobileNumber;
msg.SourceAddress = "";
//msg.SourceAddress = "Entering Number Here works fine";
msg.Text = call.LongMessage;
msg.RegisterDeliveryNotification = false;

is there a reason why the exception is being thrown when no source?

Thanks,
Daniel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions