Bostock James schrieb:
> Hi,
>
> I am testing Kannel using the Logica SMSC simulator. When I send an SMS
> text message, using the sendsms service and requesting a delivery
> report, the delivery report seems to be being treated as a new SMS text
> message and the default SMS service is applied causing a spurious
> message to be sent to the SMSC simulator. Here is the relevant excerpt
> from the smsbox log:
reviewing your kannel.log unveils the cause:
Here is the deliver_sm PDU we get from Logica's simulator:
SMPP PDU 20269388 dump:
type_name: deliver_sm
command_id: 5 = 0x00000005
command_status: 0 = 0x00000000
sequence_number: 6 = 0x00000006
service_type: NULL
source_addr_ton: 2 = 0x00000002
source_addr_npi: 1 = 0x00000001
source_addr: "48790013336"
dest_addr_ton: 2 = 0x00000002
dest_addr_npi: 1 = 0x00000001
destination_addr: "48790013336"
esm_class: 0 = 0x00000000
protocol_id: 0 = 0x00000000
priority_flag: 0 = 0x00000000
schedule_delivery_time: NULL
validity_period: NULL
registered_delivery: 0 = 0x00000000
replace_if_present_flag: 0 = 0x00000000
data_coding: 0 = 0x00000000
sm_default_msg_id: 0 = 0x00000000
sm_length: 108 = 0x0000006c
short_message:
Octet string at 20269668:
len: 108
size: 109
immutable: 0
data: 69 64 3a 53 6d 73 63 32 30 31 31 20 73 75 62 3a id:Smsc2011 sub:
data: 31 20 64 6c 76 72 64 3a 31 20 73 75 62 6d 69 74 1 dlvrd:1 submit
data: 20 64 61 74 65 3a 30 38 30 39 33 30 31 30 35 34 date:0809301054
data: 20 64 6f 6e 65 20 64 61 74 65 3a 30 38 30 39 33 done date:08093
data: 30 31 30 35 34 20 73 74 61 74 3a 30 20 65 72 72 01054 stat:0 err
data: 3a 30 20 74 65 78 74 3a 50 4c 41 59 3a 4f 75 74 :0 text:PLAY:Out
data: 73 74 61 6e 64 69 6e 67 20 62 61 6c standing bal
Octet string dump ends.
SMPP PDU dump ends.
note the esm_class = 0x00, this is the field indicating the ESME (Kannel) what
kind of "type" this MO is. A DLR would have specific bits set in this field, see
the SMPP v3.4 spec for the esm_class.
Ergo: It's a misbehaving SMSC here... Keep in mind, this is a "simulator". Seems
like the Logica guys didn't take care of doing it the right way for the
simulator as they do it generally for their real SMSCs ;)
Stipe
--
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany
tolj.org system architecture Kannel Software Foundation (KSF)
http://www.tolj.org/ http://www.kannel.org/
mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------