V
V
Vayladion Gognazdiak2014-07-23 08:12:36
SMS
Vayladion Gognazdiak, 2014-07-23 08:12:36

How to make KANNEL work with Cyrillic when passing a message to message_payload?

Good day. When implementing SMSC on KANNEL, I encountered the following problem.
All SMS using the Cyrillic alphabet in the body of the message go normally - i.e. Cyrillic reaches the subscriber when using charset=utf8 and coding=2.
Since the SMS length has increased and the Opsos SMSC supports the message_payload, it was decided to use it.
When a message is sent using the Latin characters &meta-data=?smpp?message_payload=test1234 testtestetstrtst - it arrives normally. All characters of the Latin alphabet are displayed normally.
In the case when the text is sent using the Cyrillic alphabet, something like this "залупа" arrives, coding and charset are not used.
When using the coding and charset parameters, the result is squares on the phone screen.
In the TLV config:
group = smpp-tlv
name = message_payload
tag = 0x0424
type = octetstring
length = 200
In the database ( SQLBOX ) in the meta-data field when sending SMS with Cyrillic:
?smpp?message_payload=заÐ" Note KANNEL
version 1.5.0
Request example:
/cgi-bin/sendsms?smsc=SMSC&username=test&password=test&from=666&to=123456789&meta-data=%3Fsmpp%3Fmessage_payload=%22%D1%82%D0%B5%D1 %81%D1%82%D1%82%D1%82%D1%82%D1%82%D1%82%D1%82%22
How to make KANNEL correctly transmit Cyrillic via message_payload?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Skogorev, 2014-07-23
@EnterSandman

with charset tried to be played?

V
Vayladion Gognazdiak, 2014-07-28
@etspring

Tried to experiment with both charset and dc. Unfortunately, the effect was not achieved.
As a result, I catch " got DLR but could not find message or was not interested in it " because of the length of the messages ;(

L
lelik67, 2020-05-26
@lelik67

I understand that 3 years have passed, but the issue is still not resolved?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question