当前位置: 首页 > 知识库问答 >
问题:

Kannel连接短信已确认但未送达

艾泽语
2023-03-14

我正在使用坎内尔向短信发送短信:

> < li>

发送包含一部分的短信(

发送多部分(长)短信息是:

A. ifconcatenation=false:由Kannel拆分,零件被ACKed并交付(作为唯一的SMS)。

B.如果串联 = true:由 Kannel 拆分,并且部件已 ACK 化,但未被删除。

此外,发送到目的地号码的任何后续短信,只要遇到这种情况[2.B],也会得到确认,但不会发送,即使它是由1部分组成的短信!

有人有过类似的经历吗?

由于1方的行为正常,我怀疑问题出在连接过程本身……但问题出在:

  • 坎内尔(版本还是会议?
  • SMSC(我正在连接的特定 SMSC 是否需要特殊内容?
  • 手机(值得怀疑,我尝试了来自多个网络和几个设备的几个号码)。
  • 我把短信发给坎内尔的方式(发送cgi)?!

令人难以置信的是,所有的消息(1部分,独立的多部分,和连接的多部分)都被SMSC接受交付和交付,除了在某个地方丢失的连接消息,并导致手机不再接收任何东西!

重新连接到 SMSC 不会取消阻止该号码,重新启动电话不会取消阻止该号码。一旦串联的消息被发送到一个号码,ACKed和未交付,任何东西都不会从kannel到达它。

该号码仍然可以接收和显示其他号码发送给它的长短短信,甚至可以从运营商(SMSC提供商)用于测试的网络接口接收短信!

编辑:事实证明,MSISDN并不是无限期地被封锁,只是在提交串联的多部分SMS后的24小时内。24小时后,所有由一部分组成的短信将被发送(一次),但不是由多部分组成的短信。我猜这进一步表明问题出在SMSC?!

编辑:发现问题!< br >移动运营商最终报告说,他们的SMSC中有一个漏洞!它不能处理7位(GSM)连接信息!但是,UCS-2串联处理成功!< br >他们向他们的SMSC供应商报告了这个错误,正在等待修复。同时,他们建议用8位编码[< code > charset = UTF-8]发送7位长的信息(多部分)

以下是 Kannel 会议、持有者和短信盒启动日志以及测试日志。请帮我弄清楚这一点.呵呵。

smskannel.conf:

group = smsc
smsc = smpp
smsc-id = UMNIAH
host = *****
port = *****
smsc-username = *****
smsc-password = *****
system-type = VMA
interface-version = 34
transceiver-mode = false #only want to send.. no MOs
connect-allow-ip = 127.0.0.1
#thought the below ton and npi confs might fix the problem, but they had no effect
source-addr-ton = 5 #Alphanumeric
source-addr-npi = 0
source-addr-autodetect = false
dest-addr-ton = 1 #International
dest-addr-npi = 0
bind-addr-ton = 0
bind-addr-npi = 0

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 13013

group = sendsms-user
username = tester
password = foobar
max-messages = 5
concatenation = true #false works fine, but I need long messages to be concatenated

#will setup DLR when I get concatenated messages to work
#no services are defined.. only want to send and won't be recieving

承载盒启动:

[root@vps-1098126-9711 kannel]# sbin/bearerbox smskannel.conf &
[1] 3517
[root@vps-1098126-9711 kannel]# 2012-07-31 03:41:32 [3517] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
[3517] [0] WARNING: DLR: using default 'internal' for storage type.
[3517] [0] INFO: DLR using storage type: internal
[3517] [0] DEBUG: Kannel bearerbox version `1.4.3'.
Build `Jul  4 2012 11:03:53', compiler `4.1.2 20080704 (Red Hat 4.1.2-52)'.
System Linux, release 2.6.32-042stab057.1, version #1 SMP Fri Jun 22 02:17:07 MSD 2012, machine x86_64.
Hostname *****, IP *****.
Libxml version 2.6.26.
Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.
Compiled with MySQL 5.5.14, using MySQL 5.5.14.
Using native malloc.

[3517] [0] INFO: Added logfile `/tmp/kannel.log' with level `0'.
[3517] [0] INFO: HTTP: Opening server at port 13000.
[3517] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
[3517] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3517.
[3517] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
[3517] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
[3517] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 3517.
[3517] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3517.
[3517] [0] DEBUG: starting smsbox connection module
[3517] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
[3517] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes)
[3517] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)
[3517] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 3517.
[3517] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 3517.
[3517] [0] INFO: Set SMS resend frequency to 60 seconds.
[3517] [0] INFO: SMS resend retry set to unlimited.
[3517] [0] DEBUG: smsbox MO concatenated message handling enabled
[3517] [0] INFO: DLR rerouting for smsc id <UMNIAH> disabled.
[3517] [0] DEBUG: Started thread 6 (gw/smsc/smsc_smpp.c:io_thread)
[3517] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)
[3517] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 3517.
[3517] [0] INFO: ----------------------------------------
[3517] [0] INFO: Kannel bearerbox II version 1.4.3 starting
[3517] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 3517.
[3517] [0] INFO: MAIN: Start-up done, entering mainloop
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e37300 dump:
[3517] [6] DEBUG:   type_name: bind_transmitter
[3517] [6] DEBUG:   command_id: 2 = 0x00000002
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 1 = 0x00000001
[3517] [6] DEBUG:   system_id: "*****"
[3517] [6] DEBUG:   password: "*****"
[3517] [6] DEBUG:   system_type: "VMA"
[3517] [6] DEBUG:   interface_version: 52 = 0x00000034
[3517] [6] DEBUG:   addr_ton: 0 = 0x00000000
[3517] [6] DEBUG:   addr_npi: 0 = 0x00000000
[3517] [6] DEBUG:   address_range: NULL
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e37300 dump:
[3517] [6] DEBUG:   type_name: bind_transmitter_resp
[3517] [6] DEBUG:   command_id: 2147483650 = 0x80000002
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 1 = 0x00000001
[3517] [6] DEBUG:   system_id: "*****"
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending enquire link:
[3517] [6] DEBUG: SMPP PDU 0x1e37300 dump:
[3517] [6] DEBUG:   type_name: enquire_link
[3517] [6] DEBUG:   command_id: 21 = 0x00000015
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 2 = 0x00000002
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e37300 dump:
[3517] [6] DEBUG:   type_name: enquire_link_resp
[3517] [6] DEBUG:   command_id: 2147483669 = 0x80000015
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 2 = 0x00000002
[3517] [6] DEBUG: SMPP PDU dump ends.

smsbox启动:

[root@vps-1098126-9711 kannel]# sbin/smsbox smskannel.conf &
[2] 3525
[root@vps-1098126-9711 kannel]# 2012-07-31 03:43:25 [3525] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
[3525] [0] DEBUG: Kannel smsbox version `1.4.3'.
Build `Jul  4 2012 11:03:53', compiler `4.1.2 20080704 (Red Hat 4.1.2-52)'.
System Linux, release 2.6.32-042stab057.1, version #1 SMP Fri Jun 22 02:17:07 MSD 2012, machine x86_64.
Hostname *****, IP *****.
Libxml version 2.6.26.
Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.
Compiled with MySQL 5.5.14, using MySQL 5.5.14.
Using native malloc.

[3525] [0] INFO: Starting to log to file /tmp/smsbox.log level 0
[3525] [0] INFO: Added logfile `/tmp/smsbox.log' with level `0'.
[3525] [0] INFO: Service global sender set as '13013'
[3525] [0] INFO: HTTP: Opening server at port 13013.
[3525] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
[3525] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
[3525] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3525.
[3525] [0] INFO: Set up send sms service at port 13013
[3525] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3525.
[3525] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
[3525] [0] DEBUG: ----------------------------------------------
[3525] [0] DEBUG: Kannel smsbox version 1.4.3 starting
[3525] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 3525.
[3525] [0] DEBUG:   dumping group (sendsms-user):
[3525] [0] DEBUG:     <group> = <sendsms-user>
[3525] [0] DEBUG:     <max-messages> = <5>
[3525] [0] DEBUG:     <username> = <tester>
[3525] [0] DEBUG:     <concatenation> = <true>
[3525] [0] DEBUG:     <password> = <foobar>
[3525] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
[3525] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 3525.
[3525] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
[3525] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 3525.
[3525] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
[3525] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 3525.
[3525] [0] INFO: Connected to bearerbox at 127.0.0.1 port 13001.
[3517] [5] INFO: Client connected from <127.0.0.1>
[3525] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
[3525] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 3525.
[3517] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function)
[3517] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 3517.
[3517] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender)
[3517] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 3517.

1部分请求--实际交付:

[root@vps-1098126-9711 kannel]# curl "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=test&to=962796061912&text=test123&charset=UTF-8&coding=0"
0: Accepted for delivery

[3525] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
[3525] [2] DEBUG: HTTP: Created HTTPClient area 0x1db8280.
[3525] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
[3525] [3] INFO: sendsms used by <tester>
[3525] [3] INFO: sendsms sender:<tester:test> (127.0.0.1) to:<962796061912> msg:<test123>
[3525] [3] DEBUG: Stored UUID fe83e486-a35b-43a5-9592-0a11ef19153d
[3525] [3] DEBUG: message length 7, sending 1 messages
[3525] [3] DEBUG: Status: 202 Answer: <Sent.>
[3525] [3] DEBUG: Delayed reply - wait for bearerbox
[3517] [8] DEBUG: boxc_receiver: sms received
[3517] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0
[3525] [0] DEBUG: Got ACK (0) of fe83e486-a35b-43a5-9592-0a11ef19153d
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e392b0 dump:
[3517] [6] DEBUG:   type_name: submit_sm
[3517] [6] DEBUG:   command_id: 4 = 0x00000004
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 15 = 0x0000000f
[3517] [6] DEBUG:   service_type: NULL
[3525] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG:   source_addr_ton: 5 = 0x00000005
[3517] [6] DEBUG:   source_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG:   source_addr: "test"
[3517] [6] DEBUG:   dest_addr_ton: 1 = 0x00000001
[3517] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG:   destination_addr: "962796061912"
[3517] [6] DEBUG:   esm_class: 3 = 0x00000003
[3517] [6] DEBUG:   protocol_id: 0 = 0x00000000
[3517] [6] DEBUG:   priority_flag: 0 = 0x00000000
[3517] [6] DEBUG:   schedule_delivery_time: NULL
[3517] [6] DEBUG:   validity_period: NULL
[3517] [6] DEBUG:   registered_delivery: 0 = 0x00000000
[3517] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
[3517] [6] DEBUG:   data_coding: 0 = 0x00000000
[3525] [1] DEBUG: HTTP: Destroying HTTPClient area 0x1db8280.
[3517] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
[3517] [6] DEBUG:   sm_length: 7 = 0x00000007
[3525] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG:   short_message: "test123"
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e392b0 dump:
[3517] [6] DEBUG:   type_name: submit_sm_resp
[3517] [6] DEBUG:   command_id: 2147483652 = 0x80000004
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 15 = 0x0000000f
[3517] [6] DEBUG:   message_id: "65B634C3"
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending enquire link:
[3517] [6] DEBUG: SMPP PDU 0x1e38cc0 dump:
[3517] [6] DEBUG:   type_name: enquire_link
[3517] [6] DEBUG:   command_id: 21 = 0x00000015
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 16 = 0x00000010
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e38cc0 dump:
[3517] [6] DEBUG:   type_name: enquire_link_resp
[3517] [6] DEBUG:   command_id: 2147483669 = 0x80000015
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 16 = 0x00000010
[3517] [6] DEBUG: SMPP PDU dump ends.

多部分请求 [串联 = true] --未传递:

[root@vps-1098126-9711 kannel]# curl "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=test&to=962796061912&text=test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123&charset=UTF-8&coding=0"
0: Accepted for delivery

[3525] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
[3525] [2] DEBUG: HTTP: Created HTTPClient area 0x1dbfc00.
[3525] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
[3525] [3] INFO: sendsms used by <tester>
[3525] [3] INFO: sendsms sender:<tester:test> (127.0.0.1) to:<962796061912> msg:<test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123>
[3525] [3] DEBUG: Stored UUID 273d4165-ab63-4757-857a-a64413b95bc8
[3525] [3] DEBUG: message length 168, sending 2 messages
[3525] [3] DEBUG: Status: 202 Answer: <Sent. Message splits: 2>
[3525] [3] DEBUG: Delayed reply - wait for bearerbox
[3517] [8] DEBUG: boxc_receiver: sms received
[3517] [8] DEBUG: new split_parts created 0x1e33a00
[3517] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU:
[3525] [0] DEBUG: Got ACK (0) of 273d4165-ab63-4757-857a-a64413b95bc8
[3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump:
[3517] [6] DEBUG:   type_name: submit_sm
[3517] [6] DEBUG:   command_id: 4 = 0x00000004
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 29 = 0x0000001d
[3525] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG:   service_type: NULL
[3517] [6] DEBUG:   source_addr_ton: 5 = 0x00000005
[3517] [6] DEBUG:   source_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG:   source_addr: "test"
[3517] [6] DEBUG:   dest_addr_ton: 1 = 0x00000001
[3517] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG:   destination_addr: "962796061912"
[3517] [6] DEBUG:   esm_class: 67 = 0x00000043
[3517] [6] DEBUG:   protocol_id: 0 = 0x00000000
[3517] [6] DEBUG:   priority_flag: 0 = 0x00000000
[3525] [1] DEBUG: HTTP: Destroying HTTPClient area 0x1dbfc00.
[3517] [6] DEBUG:   schedule_delivery_time: NULL
[3525] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG:   validity_period: NULL
[3517] [6] DEBUG:   registered_delivery: 0 = 0x00000000
[3517] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
[3517] [6] DEBUG:   data_coding: 0 = 0x00000000
[3517] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
[3517] [6] DEBUG:   sm_length: 159 = 0x0000009f
[3517] [6] DEBUG:   short_message:
[3517] [6] DEBUG:    Octet string at 0x1e392b0:
[3517] [6] DEBUG:      len:  159
[3517] [6] DEBUG:      size: 1024
[3517] [6] DEBUG:      immutable: 0
[3517] [6] DEBUG:      data: 05 00 03 01 02 01 74 65 73 74 31 32 33 74 65 73   ......test123tes
[3517] [6] DEBUG:      data: 74 31 32 33 74 65 73 74 31 32 33 74 65 73 74 31   t123test123test1
[3517] [6] DEBUG:      data: 32 33 74 65 73 74 31 32 33 74 65 73 74 31 32 33   23test123test123
[3517] [6] DEBUG:      data: 74 65 73 74 31 32 33 74 65 73 74 31 32 33 74 65   test123test123te
[3517] [6] DEBUG:      data: 73 74 31 32 33 74 65 73 74 31 32 33 74 65 73 74   st123test123test
[3517] [6] DEBUG:      data: 31 32 33 74 65 73 74 31 32 33 74 65 73 74 31 32   123test123test12
[3517] [6] DEBUG:      data: 33 74 65 73 74 31 32 33 74 65 73 74 31 32 33 74   3test123test123t
[3517] [6] DEBUG:      data: 65 73 74 31 32 33 74 65 73 74 31 32 33 74 65 73   est123test123tes
[3517] [6] DEBUG:      data: 74 31 32 33 74 65 73 74 31 32 33 74 65 73 74 31   t123test123test1
[3517] [6] DEBUG:      data: 32 33 74 65 73 74 31 32 33 74 65 73 74 31 32      23test123test12
[3517] [6] DEBUG:    Octet string dump ends.
[3517] [6] DEBUG:   more_messages_to_send: 1 = 0x00000001
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump:
[3517] [6] DEBUG:   type_name: submit_sm
[3517] [6] DEBUG:   command_id: 4 = 0x00000004
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 30 = 0x0000001e
[3517] [6] DEBUG:   service_type: NULL
[3517] [6] DEBUG:   source_addr_ton: 5 = 0x00000005
[3517] [6] DEBUG:   source_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG:   source_addr: "test"
[3517] [6] DEBUG:   dest_addr_ton: 1 = 0x00000001
[3517] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG:   destination_addr: "962796061912"
[3517] [6] DEBUG:   esm_class: 67 = 0x00000043
[3517] [6] DEBUG:   protocol_id: 0 = 0x00000000
[3517] [6] DEBUG:   priority_flag: 0 = 0x00000000
[3517] [6] DEBUG:   schedule_delivery_time: NULL
[3517] [6] DEBUG:   validity_period: NULL
[3517] [6] DEBUG:   registered_delivery: 0 = 0x00000000
[3517] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
[3517] [6] DEBUG:   data_coding: 0 = 0x00000000
[3517] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
[3517] [6] DEBUG:   sm_length: 21 = 0x00000015
[3517] [6] DEBUG:   short_message:
[3517] [6] DEBUG:    Octet string at 0x1e394d0:
[3517] [6] DEBUG:      len:  21
[3517] [6] DEBUG:      size: 1024
[3517] [6] DEBUG:      immutable: 0
[3517] [6] DEBUG:      data: 05 00 03 01 02 02 33 74 65 73 74 31 32 33 74 65   ......3test123te
[3517] [6] DEBUG:      data: 73 74 31 32 33                                    st123
[3517] [6] DEBUG:    Octet string dump ends.
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump:
[3517] [6] DEBUG:   type_name: submit_sm_resp
[3517] [6] DEBUG:   command_id: 2147483652 = 0x80000004
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 29 = 0x0000001d
[3517] [6] DEBUG:   message_id: "65B6354E"
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump:
[3517] [6] DEBUG:   type_name: submit_sm_resp
[3517] [6] DEBUG:   command_id: 2147483652 = 0x80000004
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 30 = 0x0000001e
[3517] [6] DEBUG:   message_id: "65B6354F"
[3517] [6] DEBUG: SMPP PDU dump ends.

1 部分请求(与之前的请求相同)这次未送达!

[root@vps-1098126-9711 kannel]# curl "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=test&to=962796061912&text=test123&charset=UTF-8&coding=0"
0: Accepted for delivery

[3525] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
[3525] [2] DEBUG: HTTP: Created HTTPClient area 0x1dc3060.
[3525] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
[3525] [3] INFO: sendsms used by <tester>
[3525] [3] INFO: sendsms sender:<tester:test> (127.0.0.1) to:<962796061912> msg:<test123>
[3525] [3] DEBUG: Stored UUID 18070d9d-dafb-4a27-8e10-e5573b4e48d4
[3525] [3] DEBUG: message length 7, sending 1 messages
[3525] [3] DEBUG: Status: 202 Answer: <Sent.>
[3525] [3] DEBUG: Delayed reply - wait for bearerbox
[3517] [8] DEBUG: boxc_receiver: sms received
[3517] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e3c830 dump:
[3517] [6] DEBUG:   type_name: submit_sm
[3517] [6] DEBUG:   command_id: 4 = 0x00000004
[3525] [0] DEBUG: Got ACK (0) of 18070d9d-dafb-4a27-8e10-e5573b4e48d4
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 44 = 0x0000002c
[3517] [6] DEBUG:   service_type: NULL
[3517] [6] DEBUG:   source_addr_ton: 5 = 0x00000005
[3517] [6] DEBUG:   source_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG:   source_addr: "test"
[3517] [6] DEBUG:   dest_addr_ton: 1 = 0x00000001
[3517] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG:   destination_addr: "962796061912"
[3517] [6] DEBUG:   esm_class: 3 = 0x00000003
[3525] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG:   protocol_id: 0 = 0x00000000
[3517] [6] DEBUG:   priority_flag: 0 = 0x00000000
[3517] [6] DEBUG:   schedule_delivery_time: NULL
[3517] [6] DEBUG:   validity_period: NULL
[3517] [6] DEBUG:   registered_delivery: 0 = 0x00000000
[3517] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
[3517] [6] DEBUG:   data_coding: 0 = 0x00000000
[3517] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
[3517] [6] DEBUG:   sm_length: 7 = 0x00000007
[3517] [6] DEBUG:   short_message: "test123"
[3517] [6] DEBUG: SMPP PDU dump ends.
[3525] [1] DEBUG: HTTP: Destroying HTTPClient area 0x1dc3060.
[3525] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e38cc0 dump:
[3517] [6] DEBUG:   type_name: submit_sm_resp
[3517] [6] DEBUG:   command_id: 2147483652 = 0x80000004
[3517] [6] DEBUG:   command_status: 0 = 0x00000000
[3517] [6] DEBUG:   sequence_number: 44 = 0x0000002c
[3517] [6] DEBUG:   message_id: "65B63601"
[3517] [6] DEBUG: SMPP PDU dump ends.

共有1个答案

芮朗
2023-03-14

是否可以使用PHP Kannel将7位字符串打包为8位字符串,以绕过SMSC的错误并每个部分发送153个字符?

不太可能。当您在sendsms URL中设置code=1时,这会更改SMS PDU中的data_coding参数。它将其设置为“未指定的八位字节”,手机可能永远不会尝试将其解码为7位GSM消息

有趣的是,根据Android短信解析源代码中的一条评论,一些运营商使用这个data_coding以UTF8格式发送短信。

 类似资料:
  • 以下是我正在尝试的: 其中是一个帐户SID,其电话号码是我要发送的。是connect按钮发回给我的帐户SID(名称类似“connectApp:...的子帐户”)。是我的(不是连接帐户的)auth令牌。 我已经尝试了3个帐户SID的各种排列,但不能让他们中的任何一个工作。如何代表已连接的帐户发送短信? 如果我通过curl为帐户购买一个新号码,它就可以工作了。但我不想在我的应用程序中建立一个购买号码的

  • 问题内容: 我是Android的新手,已经完全绑定了我的应用程序,但是现在我希望对其进行更改。 当有人发送短信时,我想显示一个确认对话框,以发送短信询问是否发送短信。我必须为其编写一个源代码,并使其能够正常工作,但是如果用户未单击“是”或“取消”,该对话框将消失,但希望它仍将显示,直到用户未单击“是”或“我”为止,取消按钮。 如何解决? 问题答案: 当用户按下返回按钮时,它可以防止关闭警报对话框:

  • 监控系统产生报警事件之后需要发送报警邮件或者报警短信,各个公司可能有自己的邮件服务器,有自己的邮件发送方法;有自己的短信通道,有自己的短信发送方法。falcon为了适配各个公司,在接入方案上做了一个规范,需要各公司提供http的短信和邮件发送接口。 短信发送http接口: method: post params: - content: 短信内容 - tos: 使用逗号分隔的多个手机号 邮

  • 我已经设置了AWS认知与我自己的用户池,但当我创建一个有效的电话号码的用户,我没有收到验证短信在该手机上。我还创建了角色,允许亚马逊Cognito发送短信。请帮助我调试问题,并让我知道如果需要更多的细节。

  • 我的应用程序通过SmsManager.sendMultipartTextMessage发送短信,然后通知服务器短信发送的状态。 一切正常,但Yota操作员有问题。短信不会发送到 MTS 运营商的手机。Yota运营商的员工声称MTS运营商阻止接收来自Yota的消息。 这不是我们的问题,但Android系统说,这样的短信成功交付。我们无法从其他手机重新发送此类短信,因为我们的系统认为它们已经成功发送。

  • 本文向大家介绍Twilio 发送短信,包括了Twilio 发送短信的使用技巧和注意事项,需要的朋友参考一下 示例 要使用Twilio和Python发送您的第一条SMS,您只需要Twilio-Python帮助程序库即可开始。