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

SMS with 160+ characters being received in the wrong order #48

Open
victorres93 opened this issue Aug 24, 2021 · 1 comment
Open

SMS with 160+ characters being received in the wrong order #48

victorres93 opened this issue Aug 24, 2021 · 1 comment

Comments

@victorres93
Copy link

Hi,

I'm trying to send a SMS with more than 160 characters, but it doesn't work properly when I test the message below:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ut commodo lorem, eget molestie velit. Etiam mollis ex ac dignissim pharetra. Curabitur at mauris semper, dapibus erat sed, tempus sapien. Proin sem dui, elementum sed convallis non, porttitor quis nisl. Mauris id eros vestibulum, bibendum diam id, gravida ipsum. Nulla rutrum purus non nisi viverra, nec egestas massa ornare. Donec tempus blandit ultricies. Nullam feugiat luctus porta. Nam efficitur id ante nec dictum. Suspendisse potenti. Suspendisse potenti. Nam hendrerit non.

Return:

citur id ante nec dictum. Suspendisse potenti. Suspendisse potenti. Nam hendrerit non.

m id, gravida ipsum. Nulla rutrum purus non nisi viverra, nec egestas massa ornare. Donec tempus blandit ultricies. Nullam feugiat luctus porta. Nam effi

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ut commodo lorem, eget molestie velit. Etiam mollis ex ac dignissim pharetra. Curabitur at

mauris semper, dapibus erat sed, tempus sapien. Proin sem dui, elementum sed convallis non, porttitor quis nisl. Mauris id eros vestibulum, bibendum dia

As we can see, I received it in the following order: 4 - 3 - 1 - 2.

I already read about payload parameters in another NuGet packages, but I didn't found anything about this in JamaaSMPP documentation yet.

Is there a parameter that I can use to send this SMS in the correct order? Is there a way to send it in only one SMS?

My code:

    Private Sub btnConectar_Click(sender As Object, e As EventArgs) Handles btnConectar.Click

        Dim msg As TextMessage = New TextMessage()
        msg.DestinationAddress = "5511981000000"
        msg.SourceAddress = "5511981000000"
        msg.Text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ut commodo lorem, eget molestie velit. Etiam mollis ex ac dignissim pharetra. Curabitur at mauris semper, dapibus erat sed, tempus sapien. Proin sem dui, elementum sed convallis non, porttitor quis nisl. Mauris id eros vestibulum, bibendum diam id, gravida ipsum. Nulla rutrum purus non nisi viverra, nec egestas massa ornare. Donec tempus blandit ultricies. Nullam feugiat luctus porta. Nam efficitur id ante nec dictum. Suspendisse potenti. Suspendisse potenti. Nam hendrerit non."
        msg.RegisterDeliveryNotification = True

        Dim client As SmppClient = New SmppClient()

        Dim properties As SmppConnectionProperties = client.Properties
        properties.Host = "40.200.199.1"
        properties.Port = 9500
        properties.SystemID = "user"
        properties.Password = "pass"
        properties.SystemType = ""
        properties.DefaultServiceType = "CMT"
        client.AutoReconnectDelay = 3000
        client.KeepAliveInterval = 15000
        client.Start()

        If client.ConnectionState <> SmppConnectionState.Connected Then client.ForceConnect(5000)

        Try
            client.SendMessage(msg, 15000)
            MessageBox.Show("Return: " & msg.ReceiptedMessageId)
        Catch ex As Exception
            txtResult.Text = ex.Message
        End Try

    End Sub

Thanks,
Victor.

@amarias-smart
Copy link

hi, mind if i ask how or what configuration you have used to be able to send 160+ chars?

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

2 participants