SMS 공급자에게 연결하기 위해 항상 smslib를 사용했습니다.
SMS 공급자가 SMS 공급자이고 트랜스미터 모드로 연결됩니다 (트랜시버 아님). 내가 송신 SMS의 URL, 즉 호출 할 때채널 "0 : 배달 허용됨"이 전송되지 않았습니다.
group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
admin-password = dad
admin-deny-ip = ""
admin-allow-ip = "*.*.*.*"
wapbox-port = 13002
wdp-interface-name = "*"
log-file = "/var/log/kannel/kannel.log"
log-level = 0
box-deny-ip = ""
box-allow-ip = "*.*.*.*"
# NOT USED
group = wapbox
bearerbox-host = localhost
log-file = "/var/log/wapbox.log"
log-level = 0
syslog-level = none
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 56951000000
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
smsbox-id = smsbox
group = smsc
smsc = smpp
smsc-id = dadn_1
host = hidden on purpose for this post
port = 54002
smsc-username = dadn_1
smsc-password = pwd_1
system-type = smpp_1
transceiver-mode = 0
interface-version = 34
allowed-smsc-id = dadn_1
my-number = hidden on purpose for this post
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 0
dest-addr-npi = 1
bind-addr-ton = 0
bind-addr-npi = 1
source-addr-autodetect = 1
group = sendsms-user
username = dad
password = dad
concatenation = true
max-messages = 10
group = sms-service
keyword = wwwservice
get-url = "http://......./send_dummy_mail.asp"
concatenation = true
catch-all = yes
가 :
0: Accepted for delivery
:
http://.....:13013/cgi-bin/sendsms?username=dad&password=dad&to=....&text=test&smsc=dadn_1
을 나는이 얻을 내가이 구성, Kannel를 통해 연결하기 위해 노력하고있어
상태 페이지로 이동하면 다음과 같이 표시됩니다.
당신이 볼 수 있듯이, 그것은 말한다 "일을 보내": 63,210
http://.....:13000status.html?password=dad
내가이 얻을. 당신이 볼 수 있듯이
2014-06-12 13:31:36 [28766] [6] DEBUG: SMPP[dadn_1]: Sending PDU:
2014-06-12 13:31:36 [28766] [6] DEBUG: SMPP PDU 0x7fb55c0016a0 dump:
2014-06-12 13:31:36 [28766] [6] DEBUG: type_name: submit_sm
2014-06-12 13:31:36 [28766] [6] DEBUG: command_id: 4 = 0x00000004
2014-06-12 13:31:36 [28766] [6] DEBUG: command_status: 0 = 0x00000000
2014-06-12 13:31:36 [28766] [6] DEBUG: sequence_number: 9 = 0x00000009
2014-06-12 13:31:36 [28766] [6] DEBUG: service_type: NULL
2014-06-12 13:31:36 [28766] [6] DEBUG: source_addr_ton: 0 = 0x00000000
2014-06-12 13:31:36 [28766] [6] DEBUG: source_addr_npi: 1 = 0x00000001
2014-06-12 13:31:36 [28766] [6] DEBUG: source_addr: "56951000000"
2014-06-12 13:31:36 [28766] [6] DEBUG: dest_addr_ton: 0 = 0x00000000
2014-06-12 13:31:36 [28766] [6] DEBUG: dest_addr_npi: 1 = 0x00000001
2014-06-12 13:31:36 [28766] [6] DEBUG: destination_addr: "..." -- CENSORED ON PURPOSE
2014-06-12 13:31:36 [28766] [6] DEBUG: esm_class: 3 = 0x00000003
2014-06-12 13:31:36 [28766] [6] DEBUG: protocol_id: 0 = 0x00000000
2014-06-12 13:31:36 [28766] [6] DEBUG: priority_flag: 0 = 0x00000000
2014-06-12 13:31:36 [28766] [6] DEBUG: schedule_delivery_time: NULL
2014-06-12 13:31:36 [28766] [6] DEBUG: validity_period: NULL
2014-06-12 13:31:36 [28766] [6] DEBUG: registered_delivery: 0 = 0x00000000
2014-06-12 13:31:36 [28766] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000
2014-06-12 13:31:36 [28766] [6] DEBUG: data_coding: 0 = 0x00000000
2014-06-12 13:31:36 [28766] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000
2014-06-12 13:31:36 [28766] [6] DEBUG: sm_length: 6 = 0x00000006
2014-06-12 13:31:36 [28766] [6] DEBUG: short_message: "testtt"
2014-06-12 13:31:36 [28766] [6] DEBUG: SMPP PDU dump ends.
2014-06-12 13:31:37 [28766] [6] DEBUG: SMPP[dadn_1]: Got PDU:
2014-06-12 13:31:37 [28766] [6] DEBUG: SMPP PDU 0x7fb55c0016a0 dump:
2014-06-12 13:31:37 [28766] [6] DEBUG: type_name: submit_sm_resp
2014-06-12 13:31:37 [28766] [6] DEBUG: command_id: 2147483652 = 0x80000004
2014-06-12 13:31:37 [28766] [6] DEBUG: command_status: 0 = 0x00000000
2014-06-12 13:31:37 [28766] [6] DEBUG: sequence_number: 9 = 0x00000009
2014-06-12 13:31:37 [28766] [6] DEBUG: message_id: "122892043"
2014-06-12 13:31:37 [28766] [6] DEBUG: SMPP PDU dump ends.
하는 "MESSAGE_ID"이 할당 등
그러나, SMS가되지 않습니다 : 로그에서
, 단지 URL을 입력 한 후,이 수 내 휴대 기기에 도착합니다.
정확히 동일한 구성으로 SMSLIB를 사용하면 SMS가 도착합니다 .. 내 공급자가 정상적으로 작동합니다.
질문은 다음과 같습니다 내 Kannel 구성에서 뭔가 잘못
- 있습니까?
0: Accepted for delivery
이 발생하면 서비스 제공 업체의 잘못입니까? SMS는 이미 "거기"입니까?
tcpdump를 사용하여 SMPP 세션 (SMSlib 및 Kannel)의 자세한 덤프를 캡처하는 것이 좋습니다. 두 프로그램 모두에서'submit_sm' PDU의 차이를 비교하고 찾을 수 있습니다. 또한'registered_delivery'를 1로 설정하고 가능하면 DLR에서 관련 진단을받을 수 있습니다. –
registered_delivery에 트랜시버 연결이 필요합니까? – sports
예, 'registered_delivery'는 트랜시버 모드 또는 송신기/수신기가 필요합니다. 송신기 만 유지하려면 tcpdump가 더 깊은 진단을 도와야합니다. –