mirror of
https://github.com/ftl/tetra-pei.git
synced 2025-04-03 20:27:30 +02:00
allow to request a delivery report when creating the send message request
This commit is contained in:
parent
8557bf3627
commit
cfc51f472f
1 changed files with 4 additions and 3 deletions
|
@ -360,7 +360,7 @@ func ParseSDSTransfer(bytes []byte) (SDSTransfer, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTextMessageTransfer returns a new SDS-TRANSFER PDU for text messaging with the given parameters
|
// NewTextMessageTransfer returns a new SDS-TRANSFER PDU for text messaging with the given parameters
|
||||||
func NewTextMessageTransfer(messageReference MessageReference, immediate bool, text string) SDSTransfer {
|
func NewTextMessageTransfer(messageReference MessageReference, immediate bool, deliveryReport DeliveryReportRequest, text string) SDSTransfer {
|
||||||
var protocol ProtocolIdentifier
|
var protocol ProtocolIdentifier
|
||||||
if immediate {
|
if immediate {
|
||||||
protocol = ImmediateTextMessaging
|
protocol = ImmediateTextMessaging
|
||||||
|
@ -369,8 +369,9 @@ func NewTextMessageTransfer(messageReference MessageReference, immediate bool, t
|
||||||
}
|
}
|
||||||
|
|
||||||
return SDSTransfer{
|
return SDSTransfer{
|
||||||
protocol: protocol,
|
protocol: protocol,
|
||||||
MessageReference: messageReference,
|
MessageReference: messageReference,
|
||||||
|
DeliveryReportRequest: deliveryReport,
|
||||||
UserData: TextSDU{
|
UserData: TextSDU{
|
||||||
TextHeader: TextHeader{
|
TextHeader: TextHeader{
|
||||||
Encoding: ISO8859_1,
|
Encoding: ISO8859_1,
|
||||||
|
|
Loading…
Add table
Reference in a new issue