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

Concatenated / Multipart #110

Open
masday86 opened this issue Dec 15, 2022 · 0 comments
Open

Concatenated / Multipart #110

masday86 opened this issue Dec 15, 2022 · 0 comments

Comments

@masday86
Copy link

hello i'm read https://www.openmarket.com/docs/Content/apis/v3smpp/smpp-multipart-messages.htm
so need to change udhheader from

    UDHHeader := make([]byte, 7)
UDHHeader[0] = 0x06              // length of user data header
UDHHeader[1] = 0x08              // information element identifier, CSMS 16 bit reference number
UDHHeader[2] = 0x04              // length of remaining header
UDHHeader[3] = uint8(rn >> 8)    // most significant byte of the reference number
UDHHeader[4] = uint8(rn)         // least significant byte of the reference number
UDHHeader[5] = uint8(countParts) // total number of message parts

to
UDHHeader := make([]byte, 7)
UDHHeader[0] = 0x05 // Length of the rest of the UDH. This is "5" bytes.
UDHHeader[1] = 0x00 //Indicates it is a multipart message.
UDHHeader[2] = 0x03 // Length of the subheader; e.g., the rest of the UDH. This is "3" bytes.
UDHHeader[3] = uint8(rn >> 8) // Total number of parts in the multipart message.
UDHHeader[4] = uint8(countParts) // total number of message parts

can you help how i can do it?

@masday86 masday86 changed the title Concatenated Concatenated / Multipart Dec 15, 2022
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