You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To send a message, you can either use gammu-smsd-inject, which does all
the magic for you, or you can insert the message manually. The simplest
example is short text message:
INSERT INTO outbox (
DestinationNumber,
TextDecoded,
CreatorID,
Coding
) VALUES (
'800123465',
'This is a SQL test message',
'Program',
'Default_No_Compression'
);
Please note usage of TextDecoded field, for Text field, you would have
to hex encode the unicode text:
Inserting multipart messages is a bit more tricky, you need to
construct also UDH header and store it hexadecimally written into UDH
field. Unless you have a good reason to do this manually, use
gammu-smsd-inject.
For long text message, the UDH starts with 050003 followed by byte as a
message reference (you can put anything there, but it should be
different for each message, D3 in following example), byte for number
of messages (02 in example, it should be unique for each message you
send to same phone number) and byte for number of current message (01
for first message, 02 for second, etc.).
For example long text message of two parts could look like following: