Well, let's see:
You have defined a single sendsms-user with credentials:
username = knlsndusr
password = knl_usr123
and in your send-url you use username=tester&password=foobar. This doesn't
look right and I am wondering how the sms gets past smsbox...
BR,
Nikos
----- Original Message -----
From: gianluca moretti
To: [email protected]
Sent: Thursday, May 06, 2010 12:16 PM
Subject: No Foreign message ID in DLR when concatenation = true
I try to send a SMS with more of 160 char with concatenation = true.
I don't get foreign message id in first DLR when status=8 even if we have
the message-id from the smpp submit_sm_resp message . I want to know, how to
resolve this issue?
Below:
-sendSMS line
-Kannel. conf
-SMPP Logs
This is the sendsms line
http://172.31.70.117:13013/cgi-bin/sendsms?username=tester&password=foobar&coding=0&from=xxxxxxxx&to=xx111137&text=Hattiniza+ait+64067.6+TL+tutarinda+odenmemis+fatura+bulunmaktadir.%28Toplam+borcunuz+64067.6+TL%29.+Odeme+yapmamaniz+halinde+hattiniz+kisitlanacaktir.+Odeme+yaptiysaniz+bu+mesaji+dikkate+almayiniz.&validity=1440&dlr-mask=27&dlr-url=http%3A//172.31.70.117%3A7003/SMSReceivingServlet/info%3FSMSC_REPORT=%25A%26SEQUENCE_NUMBER=2359111111111111111172007%26LOG_FLAG=Y%26DELIVERY_FLAG=Y%26CAMP_ID=Camp1%26EXPIRATION_DATE=20101205+12%3A00%3A00.000%26SMSC_TIMESTAMP=%25t%26SMS_ID=%25F%26TEXT=Hattiniza+ait+64067.6+TL+tutarinda+odenmemis+fatura+bulunmaktadir.(Toplam+borcunuz+64067.6+TL).+Odeme+yapmamaniz+halinde+hattiniz+kisitlanacaktir.+Odeme+yaptiysaniz+bu+mesaji+dikkate+almayiniz.%26SMS_SENT_TYPE=PARAM%26PARA_PER_ID=22222237%26REQUEST_DATE=20100430+12%3A00%3A00.000%26SHORT_NUMBER=%25P%26DLR_STATUS=%25d%26MSISDN=%25p%26SERVICE_NUMBER=XXXXXXXX%26
The Kannel.conf
#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
#
# This basic version is used for system testing. It expects 'fakesmsc' to
# send messages which are replied with simple fixed text message.
# It is run like this:
#
# 1% gw/bearerbox gw/smskannel.conf
# 2% gw/smsbox gw/smskannel.conf
# 3% test/fakesmsc -i 0.1 -m 100 "123 345 text nop"
#
# ..all 3 commands in separate shells (or screen sessions)
# Note that you can run them in different machines but have to
# add certain command line argument and configuration variables then
#
#
# For any modifications to this file, see Kannel User Guide
# If that does not help, see Kannel web page (http://www.kannel.org) and
# various online help and mailing list archives
#
# Notes on those who base their configuration on this:
# 1) check security issues! (allowed IPs, passwords and ports)
# 2) groups cannot have empty rows inside them!
# 3) read the user guide
#
# Kalle Marjola for Kannel project 2001, 2004
#---------------------------------------------
# CORE
#
# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = knladm
status-password = knl_admin123
log-file = /smsadp/kannel/KannelRestartabilityAgent/log/kannel.log
log-level = 0
box-allow-ip = "*.*.*.*"
store-type = file
store-location = /smsadp/kannel/kannel_queue.dat
dlr-storage = oracle
dlr-retry-count = 10
dlr-retry-delay = 200
#---------------------------------------------
# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs
# This is a fake smsc connection, _only_ used to test the system and
services.
# It really cannot relay messages to actual handsets!
#group = smsc
#smsc = smpp
#smsc-id = SMPPSim
#host = 172.31.70.118
#port = 2777
#receive-port = 2777
#smsc-username = smppclient
#smsc-password = password
#system-type = "VMA"
#reconnect-delay = 1
#interface-version=34
#address-range = ""
#source-addr-ton=0
#dest-addr-ton=0
#source-addr-autodetect=no
#source-addr-npi=9
#dest-addr-npi=9
#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 10000
group = smsc
smsc = smpp
smsc-id = xxxxxx
host = 172.28.167.174
##host = 172.28.167.178
port = 6101
##receive-port = 6101
smsc-username = xxxxxxxx
smsc-password = ceytst
system-type = "TRx"
reconnect-delay = 1
interface-version=34
address-range = ""
#group = smsc
#smsc = smpp
#smsc-id = SMPPSim2
#host = 172.31.70.117
#port = 3777
#receive-port = 3777
#smsc-username = smppclient
#smsc-password = password
#system-type = "VMA"
#reconnect-delay = 1
#interface-version=34
#address-range = ""
#msg-id-type=0
#allowed-prefix-regex=^0[34]
#denied-prefix-regex=^0[1256789]
#group = smsc
#smsc = smpp
#smsc-id = SMPPSim3
#host = 172.31.70.117
#port = 4777
#receive-port = 4777
#smsc-username = smppclient1
#smsc-password = password
#system-type = "VMA"
#reconnect-delay = 1
#interface-version=34
#address-range = ""
##msg-id-type=0
#allowed-prefix-regex=^0[56]
#denied-prefix-regex=^0[1234789]
#group = smsc
#smsc = smpp
#smsc-id = SMPPSim4
#host = 172.31.70.117
#port = 5777
#receive-port = 5777
#smsc-username = smppclient1
#smsc-password = password
#system-type = "VMA"
#reconnect-delay = 1
#interface-version=34
#address-range = ""
##msg-id-type=0
#allowed-prefix-regex=^0[78]
#denied-prefix-regex=^0[1234569]
#
##
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for
delivery
group = smsbox
smsbox-id=smsbox_1
bearerbox-host = localhost
bearerbox-port=13001
sendsms-port = 13013
log-file = /smsadp/kannel/KannelRestartabilityAgent/log/smsbox.log
log-level = 0
#access-log = "/tmp/access.log"
#---------------------------------------------
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
#
http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...
group = sendsms-user
username = knlsndusr
password = knl_usr123
max-messages = 2
concatenation = true
#user-deny-ip = ""
#user-allow-ip = "*.*.*.*"
#---------------------------------------------
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service
is
# applied, using the first one to match.
#group = sms-service
#keyword = nop
#text = "You asked nothing and I did it!"
# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.
group = sms-service
keyword-regex = ^[a-z]|[A-Z]|[0-9]
catch-all=true
get-url="http://172.31.70.118:7003/SMSReceivingServlet/info?MSISDN=%p&SHORT_NUMBER=%P&KEYWORD=%a"
accepted-smsc=xxxxx
#accepted-smsc=xxxxxx
max-messages=0
######################################################
# ORACLE
group = oracle-connection
id = mydlr
username = kannel
password = KNL_SMSINT!
tnsname = SMSINT
# max count of connections that will be opened for dbpool
# default is 1
max-connections = 10
group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc
#group = smsbox-route
#smsbox-id = smsbox_1
#smsc-id = xxxxx
group = smsbox-route
smsbox-id = smsbox_1
smsc-id = xxxxxxxx
#group = smsbox-route
#smsbox-id = smsbox_1
#smsc-id = SMPPSim3
#
#group = smsbox-route
#smsbox-id = smsbox_1
#smsc-id = SMPPSim4
Follows Kannel log of send and SMPP ACK:
2010-05-05 16:19:52 [20720] [9] DEBUG: boxc_receiver: sms received
2010-05-05 16:19:52 [20720] [9] DEBUG: new split_parts created 0x1cb4bbc0
2010-05-05 16:19:52 [20720] [9] DEBUG: send_msg: sending msg to boxc:
<smsbox_1>
2010-05-05 16:19:52 [20720] [6] DEBUG: SMPP[test]: Sending PDU:
2010-05-05 16:19:52 [20720] [6] DEBUG: SMPP PDU 0x2aaaac0288e0 dump:
2010-05-05 16:19:52 [20720] [6] DEBUG: type_name: submit_sm
2010-05-05 16:19:52 [20720] [6] DEBUG: command_id: 4 = 0x00000004
2010-05-05 16:19:52 [20720] [6] DEBUG: command_status: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: sequence_number: 35411 = 0x00008a53
2010-05-05 16:19:52 [20720] [6] DEBUG: service_type: NULL
2010-05-05 16:19:52 [20720] [6] DEBUG: source_addr_ton: 5 = 0x00000005
2010-05-05 16:19:52 [20720] [6] DEBUG: source_addr_npi: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: source_addr: "SOURCE"
2010-05-05 16:19:52 [20720] [6] DEBUG: dest_addr_ton: 2 = 0x00000002
2010-05-05 16:19:52 [20720] [6] DEBUG: dest_addr_npi: 1 = 0x00000001
2010-05-05 16:19:52 [20720] [6] DEBUG: destination_addr: "123456789"
2010-05-05 16:19:52 [20720] [6] DEBUG: esm_class: 67 = 0x00000043
2010-05-05 16:19:52 [20720] [6] DEBUG: protocol_id: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: priority_flag: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: schedule_delivery_time: NULL
2010-05-05 16:19:52 [20720] [6] DEBUG: validity_period: "100506131952000+"
2010-05-05 16:19:52 [20720] [6] DEBUG: registered_delivery: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: replace_if_present_flag: 0 =
0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: data_coding: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: sm_length: 159 = 0x0000009f
2010-05-05 16:19:52 [20720] [6] DEBUG: short_message:
2010-05-05 16:19:52 [20720] [6] DEBUG: Octet string at 0x2aaaac028de0:
2010-05-05 16:19:52 [20720] [6] DEBUG: len: 159
2010-05-05 16:19:52 [20720] [6] DEBUG: size: 1024
2010-05-05 16:19:52 [20720] [6] DEBUG: immutable: 0
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 05 00 03 13 02 01 48 61 74
74 69 6e 69 7a 61 20 ......Hattiniza
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 61 69 74 20 36 34 30 36 37
2e 36 20 54 4c 20 74 ait 64067.6 TL t
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 75 74 61 72 69 6e 64 61 20
6f 64 65 6e 6d 65 6d utarinda odenmem
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 69 73 20 66 61 74 75 72 61
20 62 75 6c 75 6e 6d is fatura bulunm
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 61 6b 74 61 64 69 72 2e 28
54 6f 70 6c 61 6d 20 aktadir.(Toplam
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 62 6f 72 63 75 6e 75 7a 20
36 34 30 36 37 2e 36 borcunuz 64067.6
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 20 54 4c 29 2e 20 4f 64 65
6d 65 20 79 61 70 6d TL). Odeme yapm
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 61 6d 61 6e 69 7a 20 68 61
6c 69 6e 64 65 20 68 amaniz halinde h
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 61 74 74 69 6e 69 7a 20 6b
69 73 69 74 6c 61 6e attiniz kisitlan
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 61 63 61 6b 74 69 72 2e 20
4f 64 65 6d 65 20 acaktir. Odeme
2010-05-05 16:19:52 [20720] [6] DEBUG: Octet string dump ends.
2010-05-05 16:19:52 [20720] [6] DEBUG: more_messages_to_send: 1 =
0x00000001
2010-05-05 16:19:52 [20720] [6] DEBUG: SMPP PDU dump ends.
2010-05-05 16:19:52 [20720] [6] DEBUG: SMPP[test]: Sending PDU:
2010-05-05 16:19:52 [20720] [6] DEBUG: SMPP PDU 0x2aaaac0288e0 dump:
2010-05-05 16:19:52 [20720] [6] DEBUG: type_name: submit_sm
2010-05-05 16:19:52 [20720] [6] DEBUG: command_id: 4 = 0x00000004
2010-05-05 16:19:52 [20720] [6] DEBUG: command_status: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: sequence_number: 35412 = 0x00008a54
2010-05-05 16:19:52 [20720] [6] DEBUG: service_type: NULL
2010-05-05 16:19:52 [20720] [6] DEBUG: source_addr_ton: 5 = 0x00000005
2010-05-05 16:19:52 [20720] [6] DEBUG: source_addr_npi: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: source_addr: "SOURCE"
2010-05-05 16:19:52 [20720] [6] DEBUG: dest_addr_ton: 2 = 0x00000002
2010-05-05 16:19:52 [20720] [6] DEBUG: dest_addr_npi: 1 = 0x00000001
2010-05-05 16:19:52 [20720] [6] DEBUG: destination_addr: "123456789"
2010-05-05 16:19:52 [20720] [6] DEBUG: esm_class: 67 = 0x00000043
2010-05-05 16:19:52 [20720] [6] DEBUG: protocol_id: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: priority_flag: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: schedule_delivery_time: NULL
2010-05-05 16:19:52 [20720] [6] DEBUG: validity_period: "100506131952000+"
2010-05-05 16:19:52 [20720] [6] DEBUG: registered_delivery: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: replace_if_present_flag: 0 =
0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: data_coding: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: sm_length: 46 = 0x0000002e
2010-05-05 16:19:52 [20720] [6] DEBUG: short_message:
2010-05-05 16:19:52 [20720] [6] DEBUG: Octet string at 0x2aaaac028e50:
2010-05-05 16:19:52 [20720] [6] DEBUG: len: 46
2010-05-05 16:19:52 [20720] [6] DEBUG: size: 1024
2010-05-05 16:19:52 [20720] [6] DEBUG: immutable: 0
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 05 00 03 13 02 02 79 61 70
74 69 79 73 61 6e 69 ......yaptiysani
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 7a 20 62 75 20 6d 65 73 61
6a 69 20 64 69 6b 6b z bu mesaji dikk
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 61 74 65 20 61 6c 6d 61 79
69 6e 69 7a 2e ate almayiniz.
2010-05-05 16:19:52 [20720] [6] DEBUG: Octet string dump ends.
2010-05-05 16:19:52 [20720] [6] DEBUG: SMPP PDU dump ends.
2010-05-05 16:19:52 [20720] [6] DEBUG: SMPP[test]: Got PDU:
2010-05-05 16:19:52 [20720] [6] DEBUG: SMPP PDU 0x2aaaac0288e0 dump:
2010-05-05 16:19:52 [20720] [6] DEBUG: type_name: submit_sm_resp
2010-05-05 16:19:52 [20720] [6] DEBUG: command_id: 2147483652 = 0x80000004
2010-05-05 16:19:52 [20720] [6] DEBUG: command_status: 0 = 0x00000000
2010-05-05 16:19:52 [20720] [6] DEBUG: sequence_number: 35411 = 0x00008a53
2010-05-05 16:19:52 [20720] [6] DEBUG: message_id:
2010-05-05 16:19:52 [20720] [6] DEBUG: Octet string at 0x2aaaac029c20:
2010-05-05 16:19:52 [20720] [6] DEBUG: len: 23
2010-05-05 16:19:52 [20720] [6] DEBUG: size: 24
2010-05-05 16:19:52 [20720] [6] DEBUG: immutable: 0
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 63 65 79 6c 61 6e 74 73 74
31 32 37 33 30 36 35 test1273065
2010-05-05 16:19:52 [20720] [6] DEBUG: data: 35 39 32 30 35 39 32
5920592
2010-05-05 16:19:52 [20720] [6] DEBUG: Octet string dump ends.
2010-05-05 16:19:52 [20720] [6] DEBUG: SMPP PDU dump ends.
2010-05-05 16:19:53 [20720] [6] DEBUG: SMPP[test]: Got PDU:
2010-05-05 16:19:53 [20720] [6] DEBUG: SMPP PDU 0x2aaaac0288e0 dump:
2010-05-05 16:19:53 [20720] [6] DEBUG: type_name: submit_sm_resp
2010-05-05 16:19:53 [20720] [6] DEBUG: command_id: 2147483652 = 0x80000004
2010-05-05 16:19:53 [20720] [6] DEBUG: command_status: 0 = 0x00000000
2010-05-05 16:19:53 [20720] [6] DEBUG: sequence_number: 35412 = 0x00008a54
2010-05-05 16:19:53 [20720] [6] DEBUG: message_id:
2010-05-05 16:19:53 [20720] [6] DEBUG: Octet string at 0x2aaaac029bd0:
2010-05-05 16:19:53 [20720] [6] DEBUG: len: 23
2010-05-05 16:19:53 [20720] [6] DEBUG: size: 24
2010-05-05 16:19:53 [20720] [6] DEBUG: immutable: 0
2010-05-05 16:19:53 [20720] [6] DEBUG: data: 63 65 79 6c 61 6e 74 73 74
31 32 37 33 30 36 35 test1273065
2010-05-05 16:19:53 [20720] [6] DEBUG: data: 35 39 32 30 35 39 33
5920593
2010-05-05 16:19:53 [20720] [6] DEBUG: Octet string dump ends.
2010-05-05 16:19:53 [20720] [6] DEBUG: SMPP PDU dump ends.
2010-05-05 16:19:54 [20720] [6] DEBUG: SMPP[test]: Sending enquire link:
2010-05-05 16:19:54 [20720] [6] DEBUG: SMPP PDU 0x2aaaac0288e0 dump:
2010-05-05 16:19:54 [20720] [6] DEBUG: type_name: enquire_link
2010-05-05 16:19:54 [20720] [6] DEBUG: command_id: 21 = 0x00000015
2010-05-05 16:19:54 [20720] [6] DEBUG: command_status: 0 = 0x00000000
2010-05-05 16:19:54 [20720] [6] DEBUG: sequence_number: 35413 = 0x00008a55
2010-05-05 16:19:54 [20720] [6] DEBUG: SMPP PDU dump ends.
2010-05-05 16:19:54 [20720] [6] DEBUG: SMPP[test]: Got PDU:
2010-05-05 16:19:54 [20720] [6] DEBUG: SMPP PDU 0x2aaaac0288e0 dump:
2010-05-05 16:19:54 [20720] [6] DEBUG: type_name: enquire_link_resp
2010-05-05 16:19:54 [20720] [6] DEBUG: command_id: 2147483669 = 0x80000015
2010-05-05 16:19:54 [20720] [6] DEBUG: command_status: 0 = 0x00000000
2010-05-05 16:19:54 [20720] [6] DEBUG: sequence_number: 35413 = 0x00008a55
2010-05-05 16:19:54 [20720] [6] DEBUG: SMPP PDU dump ends.
After the SMPP ACK I cannot find log about query on Kannel DB like:
DEBUG: SMPP[SMPPSim1] handle_pdu, got DLR
DEBUG: DLR[oracle]: Looking for DLR smsc=SMPPSim1, ts=0, dst=123456789,
type=1
DEBUG: SQL has 1 columns
DEBUG: alloc size=8
DEBUG: retrieve data_size
DEBUG: alloc size=3
DEBUG: sql: SELECT mask, service, url, source, destination, boxc FROM dlr
WHERE smsc=:1 AND ts=:2 AND destination=:3 AND ROWNUM < 2
DEBUG: SQL has 6 columns
DEBUG: alloc size=48
DEBUG: retrieve data_size
DEBUG: alloc size=23
DEBUG: alloc size=41
DEBUG: alloc size=1001
DEBUG: oracle_malloc called size=4240 @19077ee0
DEBUG: alloc size=41
DEBUG: alloc size=41
DEBUG: alloc size=41
Avatar per Messenger e sfondo per il PC Creali gratis!