Closed JimcaaleAaqil closed 1 year ago
Just added this 2 fields and now it works!
sm, err := tx.Submit(&smpp.ShortMessage{
Src: "MyCompany",
Dst: "25*********",
Text: pdutext.Raw("Sample sms"),
Register: pdufield.NoDeliveryReceipt,
// ADDED THESS 2 FIELDS
SourceAddrTON: 5,
SourceAddrNPI: 0,
})
I'm using a simple Go app to send SMPP SMS. The messages are being sent successfully, but the source address displayed on the recipient's phone is "Unknown address". Here is my code
-- main.go
-- go.mod