opentelecoms-org / jsmpp

SMPP implemented in Java
Apache License 2.0
230 stars 160 forks source link

On the server side, does jsmpp validate src/dest addresses based on TON and NPI? #143

Open javadevmtl opened 3 years ago

javadevmtl commented 3 years ago

As the title asks. Is there validation or the values are provided as is?

So if a client connects to our smpp server implemented with Jsmpp and they send a number that does not match against TON/NPI will it get rejected or we have to implement the validation?

pmoerenhout commented 3 years ago

Yes, you have to implement some logic to decide what you want to accept. See the WaitBindTask in the examples.