Hello users,
I try send SMS message from phone via SMS centre of provider. My
kannel server get this message, but text of message (123, for
example), i see in field "message_payload:", instead in filesd
"short_message:". After that, kannel can't extract keyword from from
this message, and correct process it :(
This is bug? Error? How can i fix this?
Thanks.
>$ uname -a
SunOS sonor 5.8 Generic_108528-29 sun4u sparc
>Kannel bearerbox version `cvs-20040328'.
Build `Apr 15 2004 10:26:54', compiler `3.3.2'.
System SunOS, release 5.8, version Generic_108528-29, machine sun4u.
Libxml version 2.4.12.
Using native malloc.
Status: running, uptime 0d 0h 6m 35s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 1 (0 queued), sent 1 (0 queued), store size -1
SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec
DLR: 0 queued, using internal storage
Box connections:
smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 6m 33s)
SMSC connections:
NNN SMPP:nnn.nn.nnn.nn:nnnn/nnnn:nnnn:nnnn (online 395s, rcvd 1,
sent 1, failed 0, queued 0 msgs)
>------------------------------------------------------------------------------
>bearerbox.cvs -v 0 /usr/local/etc/kannel/kannel.conf
[20637] [0] INFO: Debug_lvl = 0, log_file = <none>, log_lvl = 0
[20637] [0] WARNING: DLR: using default 'internal' for storage type.
[20637] [0] INFO: DLR using storage type: internal
[20637] [0] DEBUG: Kannel bearerbox version `cvs-20040328'.
Build `Apr 15 2004 10:26:54', compiler `3.3.2'.
System SunOS, release 5.8, version Generic_108528-29, machine sun4u.
Libxml version 2.4.12.
Using native malloc.
....
15:43:35 [20637] [7] DEBUG: SMPP[MTS]: Got PDU:
15:43:35 [20637] [7] DEBUG: SMPP PDU 136e20 dump:
15:43:35 [20637] [7] DEBUG: type_name: deliver_sm
15:43:35 [20637] [7] DEBUG: command_id: 5 = 0x00000005
15:43:35 [20637] [7] DEBUG: command_status: 0 = 0x00000000
15:43:35 [20637] [7] DEBUG: sequence_number: 1 = 0x00000001
15:43:35 [20637] [7] DEBUG: service_type: NULL
15:43:35 [20637] [7] DEBUG: source_addr_ton: 1 = 0x00000001
15:43:35 [20637] [7] DEBUG: source_addr_npi: 1 = 0x00000001
15:43:35 [20637] [7] DEBUG: source_addr: "7916nnnnnnn"
15:43:35 [20637] [7] DEBUG: dest_addr_ton: 0 = 0x00000000
15:43:35 [20637] [7] DEBUG: dest_addr_npi: 1 = 0x00000001
15:43:35 [20637] [7] DEBUG: destination_addr: "nnn"
15:43:35 [20637] [7] DEBUG: esm_class: 0 = 0x00000000
15:43:35 [20637] [7] DEBUG: protocol_id: 0 = 0x00000000
15:43:35 [20637] [7] DEBUG: priority_flag: 0 = 0x00000000
15:43:35 [20637] [7] DEBUG: schedule_delivery_time: NULL
15:43:35 [20637] [7] DEBUG: validity_period: NULL
15:43:35 [20637] [7] DEBUG: registered_delivery: 0 = 0x00000000
15:43:35 [20637] [7] DEBUG: replace_if_present_flag: 0 = 0x00000000
15:43:35 [20637] [7] DEBUG: data_coding: 0 = 0x00000000
15:43:35 [20637] [7] DEBUG: sm_default_msg_id: 0 = 0x00000000
15:43:35 [20637] [7] DEBUG: sm_length: 0 = 0x00000000
>15:43:35 [20637] [7] DEBUG: short_message: ""
>15:43:35 [20637] [7] DEBUG: message_payload: "123"
15:43:35 [20637] [7] DEBUG: SMPP PDU dump ends.
>------------------------------------------------------------------------------
>smsbox.cvs -v 0 /usr/local/etc/kannel/kannel.conf
[20638] [0] INFO: Debug_lvl = 0, log_file = <none>, log_lvl = 0
[20638] [0] DEBUG: Kannel smsbox version `cvs-20040328'.
Build `Apr 15 2004 10:26:54', compiler `3.3.2'.
System SunOS, release 5.8, version Generic_108528-29, machine sun4u.
Libxml version 2.4.12.
Using native malloc.
...
[20638] [4] INFO: Starting to service <> from <+7nnnnnnnnnn> to <nnn>
[20638] [4] DEBUG: executing sms-service 'test-script.sh '
[20638] [4] DEBUG: message length 9, sending 1 messages
>------------------------------------------------------------------------------
kannel.conf:
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = nnnnnnn
log-file = "check_smpp_bb.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
group = smsc
smsc = smpp
smsc-id = WWW
host = nnn.nn.nnn.nn
port = 5348
receive-port = 5348
system-type = "nnnnnn"
smsc-username = "nnnnnn"
smsc-password = ""
source-addr-ton = 0
source-addr-npi = 9
dest-addr-ton = 1
dest-addr-npi = 1
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 7800nnnnnnn
log-file = "smsbox.log"
reply-emptymessage = "Empty reply from service provider"
group = sendsms-user
username = nnnnnnnn
password = nnnnnnnn
default-sender = 7800nnnnnnn
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"
group = sms-service
keyword = default
exec = test-script.sh %k
--
Best regards
from future, HillDale
martin mailto:[EMAIL PROTECTED]