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

ESME_RINVSRCADR When not setting Source Address #44

Open
danielckelly opened this issue Feb 17, 2021 · 0 comments
Open

ESME_RINVSRCADR When not setting Source Address #44

danielckelly opened this issue Feb 17, 2021 · 0 comments

Comments

@danielckelly
Copy link

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.

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

1 participant