Fix size calculation and add another test for encoding a gsm7 message
This commit is contained in:
@@ -135,7 +135,7 @@ func (p *SUBMIT_SM) Size() int {
|
||||
}
|
||||
func (p *SUBMIT_SM) UpdateSize() {
|
||||
p.header.command_length = uint32(p.Size())
|
||||
p.sm_length = byte(len(p.short_message))
|
||||
p.sm_length = byte(p.GetEncoder().EncodesInto(&p.short_message))
|
||||
}
|
||||
func (p *SUBMIT_SM) GetEncoder() encoding.Coder {
|
||||
switch p.data_coding {
|
||||
|
||||
Reference in New Issue
Block a user