マルチパート メッセージを送信できるようにするために送信する必要がある特別なオプションはありますか?
以下のURLにアクセスして、KannelにSMSを送信しています。 http://myipaddress:13013/cgi-bin/sendsms?username=test&password=test&to=123456789&from=TEST&text=long_long_text
しかし、メッセージ自体を受信する代わりに、携帯電話に 4eX1-06I のような奇妙な記号が表示されます。…そして、ラテン語以外の記号もいくつか含まれています。
他に何も変更せずにテキストを短く (160 未満) すると、正常に動作するため、これは単なるマルチパート メッセージの問題です。コーディングと文字セット (coding=1&charset=windows-1252) を設定すると、Samsung の電話はメッセージを受信しますが、Nokia は「サポートされていないメッセージ タイプ」と表示します http://myipaddress:13013/cgi-bin/sendsms?coding=1&charset=windows -1252&username=test&password=test&to=123456789&from=TEST&text=long_long_text
http://myipaddress:13013/cgi-bin/sendsms?coding=2&charset=utf-8&username=test&password=test&to=123456789&from=TEST&text=long_long_textで Unicode メッセージを 送信できますが、この場合は 2 つのメッセージを送信する代わりに、 3個送ります、高いので、このまま行きたくないです。
Kannel smsbox バージョン 1.4.3
私の見解では、マルチパート メッセージは kannel によって自動的に処理される必要があるため、そのために特別なことは何もしていません。kannel 設定でマルチパート メッセージに関連するものは見つかりませんでした。kannel のユーザー マニュアルには、マルチパート メッセージに関する情報はまったく見つかりませんでした。
これは、単一メッセージとマルチパートの両方の PDU です。本当に違いがわかりません。
マルチパート メッセージの PDU (1 ページ目)
2012-01-06 13:50:39 [26630] [7] DEBUG: SMPP[vivacell2]: Manually forced source addr ton = 6, source add npi = 1
2012-01-06 13:50:39 [26630] [7] DEBUG: SMPP[vivacell2]: Manually forced dest addr ton = 1, dest add npi = 1
2012-01-06 13:50:39 [26630] [7] DEBUG: SMPP[vivacell2]: Sending PDU:
2012-01-06 13:50:39 [26630] [7] DEBUG: SMPP PDU 0x7efeec0008b0 dump:
2012-01-06 13:50:39 [26630] [7] DEBUG: type_name: submit_sm
2012-01-06 13:50:39 [26630] [7] DEBUG: command_id: 4 = 0x00000004
2012-01-06 13:50:39 [26630] [7] DEBUG: command_status: 0 = 0x00000000
2012-01-06 13:50:39 [26630] [7] DEBUG: sequence_number: 601 = 0x00000259
2012-01-06 13:50:39 [26630] [7] DEBUG: service_type: NULL
2012-01-06 13:50:39 [26630] [7] DEBUG: source_addr_ton: 5 = 0x00000005
2012-01-06 13:50:39 [26630] [7] DEBUG: source_addr_npi: 0 = 0x00000000
2012-01-06 13:50:39 [26630] [7] DEBUG: source_addr: "Tiko"
2012-01-06 13:50:39 [26630] [7] DEBUG: dest_addr_ton: 1 = 0x00000001
2012-01-06 13:50:39 [26630] [7] DEBUG: dest_addr_npi: 1 = 0x00000001
2012-01-06 13:50:39 [26630] [7] DEBUG: destination_addr: "37493544831"
2012-01-06 13:50:39 [26630] [7] DEBUG: esm_class: 3 = 0x00000003
2012-01-06 13:50:39 [26630] [7] DEBUG: protocol_id: 0 = 0x00000000
2012-01-06 13:50:39 [26630] [7] DEBUG: priority_flag: 0 = 0x00000000
2012-01-06 13:50:39 [26630] [7] DEBUG: schedule_delivery_time: NULL
2012-01-06 13:50:39 [26630] [7] DEBUG: validity_period: NULL
2012-01-06 13:50:39 [26630] [7] DEBUG: registered_delivery: 0 = 0x00000000
2012-01-06 13:50:39 [26630] [7] DEBUG: replace_if_present_flag: 0 = 0x00000000
2012-01-06 13:50:39 [26630] [7] DEBUG: data_coding: 0 = 0x00000000
2012-01-06 13:50:39 [26630] [7] DEBUG: sm_default_msg_id: 0 = 0x00000000
2012-01-06 13:50:39 [26630] [7] DEBUG: sm_length: 17 = 0x00000011
2012-01-06 13:50:39 [26630] [7] DEBUG: short_message: "lohellohellohello"
2012-01-06 13:50:39 [26630] [7] DEBUG: SMPP PDU dump ends.
2012-01-06 13:50:39 [26630] [7] DEBUG: SMPP[vivacell2]: Got PDU:
2012-01-06 13:50:39 [26630] [7] DEBUG: SMPP PDU 0x7efeec0008b0 dump:
2012-01-06 13:50:39 [26630] [7] DEBUG: type_name: submit_sm_resp
2012-01-06 13:50:39 [26630] [7] DEBUG: command_id: 2147483652 = 0x80000004
2012-01-06 13:50:39 [26630] [7] DEBUG: command_status: 0 = 0x00000000
2012-01-06 13:50:39 [26630] [7] DEBUG: sequence_number: 601 = 0x00000259
2012-01-06 13:50:39 [26630] [7] DEBUG: message_id: "6030df9059c3c143"
2012-01-06 13:50:39 [26630] [7] DEBUG: SMPP PDU dump ends.
マルチパート メッセージの PDU (2 ページ目)
2012-01-06 13:44:02 [26630] [7] DEBUG: SMPP[mts]: Manually forced source addr ton = 6, source add npi = 1
2012-01-06 13:44:02 [26630] [7] DEBUG: SMPP[mts]: Manually forced dest addr ton = 1, dest add npi = 1
2012-01-06 13:44:02 [26630] [7] DEBUG: SMPP[mts]: Sending PDU:
2012-01-06 13:44:02 [26630] [7] DEBUG: SMPP PDU 0x7efeec0012c0 dump:
2012-01-06 13:44:02 [26630] [7] DEBUG: type_name: submit_sm
2012-01-06 13:44:02 [26630] [7] DEBUG: command_id: 4 = 0x00000004
2012-01-06 13:44:02 [26630] [7] DEBUG: command_status: 0 = 0x00000000
2012-01-06 13:44:02 [26630] [7] DEBUG: sequence_number: 585 = 0x00000249
2012-01-06 13:44:02 [26630] [7] DEBUG: service_type: NULL
2012-01-06 13:44:02 [26630] [7] DEBUG: source_addr_ton: 5 = 0x00000005
2012-01-06 13:44:02 [26630] [7] DEBUG: source_addr_npi: 0 = 0x00000000
2012-01-06 13:44:02 [26630] [7] DEBUG: source_addr: "SenderName"
2012-01-06 13:44:02 [26630] [7] DEBUG: dest_addr_ton: 1 = 0x00000001
2012-01-06 13:44:02 [26630] [7] DEBUG: dest_addr_npi: 1 = 0x00000001
2012-01-06 13:44:02 [26630] [7] DEBUG: destination_addr: "123456789"
2012-01-06 13:44:02 [26630] [7] DEBUG: esm_class: 67 = 0x00000043
2012-01-06 13:44:02 [26630] [7] DEBUG: protocol_id: 0 = 0x00000000
2012-01-06 13:44:02 [26630] [7] DEBUG: priority_flag: 0 = 0x00000000
2012-01-06 13:44:02 [26630] [7] DEBUG: schedule_delivery_time: NULL
2012-01-06 13:44:02 [26630] [7] DEBUG: validity_period: NULL
2012-01-06 13:44:02 [26630] [7] DEBUG: registered_delivery: 0 = 0x00000000
2012-01-06 13:44:02 [26630] [7] DEBUG: replace_if_present_flag: 0 = 0x00000000
2012-01-06 13:44:02 [26630] [7] DEBUG: data_coding: 0 = 0x00000000
2012-01-06 13:44:02 [26630] [7] DEBUG: sm_default_msg_id: 0 = 0x00000000
2012-01-06 13:44:02 [26630] [7] DEBUG: sm_length: 23 = 0x00000017
2012-01-06 13:44:02 [26630] [7] DEBUG: short_message:
2012-01-06 13:44:02 [26630] [7] DEBUG: Octet string at 0x7efeec001860:
2012-01-06 13:44:02 [26630] [7] DEBUG: len: 23
2012-01-06 13:44:02 [26630] [7] DEBUG: size: 1024
2012-01-06 13:44:02 [26630] [7] DEBUG: immutable: 0
2012-01-06 13:44:02 [26630] [7] DEBUG: data: 05 00 03 0b 02 02 6c 6f 68 65 6c 6c 6f 68 65 6c ......lohellohel
2012-01-06 13:44:02 [26630] [7] DEBUG: data: 6c 6f 68 65 6c 6c 6f lohello
2012-01-06 13:44:02 [26630] [7] DEBUG: Octet string dump ends.
2012-01-06 13:44:02 [26630] [7] DEBUG: SMPP PDU dump ends.
このメッセージは配信され、連結されましたが、判読できません。
単一のメッセージ (これは正常に動作します)
2012-01-06 13:44:22 [26630] [7] DEBUG: SMPP[mts]: Manually forced source addr ton = 6, source add npi = 1
2012-01-06 13:44:22 [26630] [7] DEBUG: SMPP[mts]: Manually forced dest addr ton = 1, dest add npi = 1
2012-01-06 13:44:22 [26630] [7] DEBUG: SMPP[mts]: Sending PDU:
2012-01-06 13:44:22 [26630] [7] DEBUG: SMPP PDU 0x7efeec0008b0 dump:
2012-01-06 13:44:22 [26630] [7] DEBUG: type_name: submit_sm
2012-01-06 13:44:22 [26630] [7] DEBUG: command_id: 4 = 0x00000004
2012-01-06 13:44:22 [26630] [7] DEBUG: command_status: 0 = 0x00000000
2012-01-06 13:44:22 [26630] [7] DEBUG: sequence_number: 587 = 0x0000024b
2012-01-06 13:44:22 [26630] [7] DEBUG: service_type: NULL
2012-01-06 13:44:22 [26630] [7] DEBUG: source_addr_ton: 5 = 0x00000005
2012-01-06 13:44:22 [26630] [7] DEBUG: source_addr_npi: 0 = 0x00000000
2012-01-06 13:44:22 [26630] [7] DEBUG: source_addr: "SenderName"
2012-01-06 13:44:22 [26630] [7] DEBUG: dest_addr_ton: 1 = 0x00000001
2012-01-06 13:44:22 [26630] [7] DEBUG: dest_addr_npi: 1 = 0x00000001
2012-01-06 13:44:22 [26630] [7] DEBUG: destination_addr: "123456789"
2012-01-06 13:44:22 [26630] [7] DEBUG: esm_class: 3 = 0x00000003
2012-01-06 13:44:22 [26630] [7] DEBUG: protocol_id: 0 = 0x00000000
2012-01-06 13:44:22 [26630] [7] DEBUG: priority_flag: 0 = 0x00000000
2012-01-06 13:44:22 [26630] [7] DEBUG: schedule_delivery_time: NULL
2012-01-06 13:44:22 [26630] [7] DEBUG: validity_period: NULL
2012-01-06 13:44:22 [26630] [7] DEBUG: registered_delivery: 0 = 0x00000000
2012-01-06 13:44:22 [26630] [7] DEBUG: replace_if_present_flag: 0 = 0x00000000
2012-01-06 13:44:22 [26630] [7] DEBUG: data_coding: 0 = 0x00000000
2012-01-06 13:44:22 [26630] [7] DEBUG: sm_default_msg_id: 0 = 0x00000000
2012-01-06 13:44:22 [26630] [7] DEBUG: sm_length: 30 = 0x0000001e
2012-01-06 13:44:22 [26630] [7] DEBUG: short_message:
2012-01-06 13:44:22 [26630] [7] DEBUG: Octet string at 0x7efeec000a80:
2012-01-06 13:44:22 [26630] [7] DEBUG: len: 30
2012-01-06 13:44:22 [26630] [7] DEBUG: size: 31
2012-01-06 13:44:22 [26630] [7] DEBUG: immutable: 0
2012-01-06 13:44:22 [26630] [7] DEBUG: data: 68 65 6c 6c 6f 68 65 6c 6c 6f 68 65 6c 6c 6f 68 hellohellohelloh
2012-01-06 13:44:22 [26630] [7] DEBUG: data: 65 6c 6c 6f 68 65 6c 6c 6f 68 65 6c 6c 6f ellohellohello
2012-01-06 13:44:22 [26630] [7] DEBUG: Octet string dump ends.
2012-01-06 13:44:22 [26630] [7] DEBUG: SMPP PDU dump ends.
2012-01-06 13:44:22 [26630] [7] DEBUG: SMPP[mts]: Got PDU:
2012-01-06 13:44:22 [26630] [7] DEBUG: SMPP PDU 0x7efeec0008b0 dump:
2012-01-06 13:44:22 [26630] [7] DEBUG: type_name: submit_sm_resp
2012-01-06 13:44:22 [26630] [7] DEBUG: command_id: 2147483652 = 0x80000004
2012-01-06 13:44:22 [26630] [7] DEBUG: command_status: 0 = 0x00000000
2012-01-06 13:44:22 [26630] [7] DEBUG: sequence_number: 587 = 0x0000024b
2012-01-06 13:44:22 [26630] [7] DEBUG: message_id: "6030df305bc3c1c2"
2012-01-06 13:44:22 [26630] [7] DEBUG: SMPP PDU dump ends.
smsc の設定は次のとおりです。
group = smsc
smsc-id = mts
smsc = smpp
host = ipaddress
port = 2775
#receive-port = 2775
smsc-username = "********"
smsc-password = "********"
transceiver-mode = true
source-addr-ton = 6
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
interface-version = "34"
system-type = "ESME"
log-file = "/var/log/kannel/smsc.log"
log-level = 4
#alt-addr-charset = GSM
alt-charset = GSM
msg-id-type=0x03
reconnect-delay = 1
keepalive = 60
connection-timeout = 600
#max-pending-submits=10
log-file = "/var/log/kannel/mts.log"
log-level = 0
それを解決する方法は?他の情報が必要な場合はお知らせください。
前もって感謝します。