--- Begin Message ---Hello,
I’m on debug lvl 0 , ill add the LOG example. TLV are defined in include file:
Kannel.conf:
include = "/etc/kannel/tlv.conf"
tlv.conf:
group = smpp-tlv
name = rut_tariff_class
tag = 0x1503
type = integer
length = 2
LOG:
2012-02-02 14:03:14 [18084] [6] DEBUG: Optional parameter tag (0x1500)
2012-02-02 14:03:14 [18084] [6] DEBUG: Optional parameter length read as 14
2012-02-02 14:03:14 [18084] [6] DEBUG: Found configured optional parameter `rut_created_ts'
2012-02-02 14:03:14 [18084] [6] DEBUG: Optional parameter tag (0x1506)
2012-02-02 14:03:14 [18084] [6] DEBUG: Optional parameter length read as 5
2012-02-02 14:03:14 [18084] [6] DEBUG: Found configured optional parameter `rut_message_id'
2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP[SMPP:xxxxxxxxxxxxxx:smpp]: Got PDU:
2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP PDU 0x87173a8 dump:
2012-02-02 14:03:14 [18084] [6] DEBUG: type_name: deliver_sm
2012-02-02 14:03:14 [18084] [6] DEBUG: command_id: 5 = 0x00000005
2012-02-02 14:03:14 [18084] [6] DEBUG: command_status: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6] DEBUG: sequence_number: 5 = 0x00000005
2012-02-02 14:03:14 [18084] [6] DEBUG: service_type: NULL
2012-02-02 14:03:14 [18084] [6] DEBUG: source_addr_ton: 1 = 0x00000001
2012-02-02 14:03:14 [18084] [6] DEBUG: source_addr_npi: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6] DEBUG: source_addr: "45633463463"
2012-02-02 14:03:14 [18084] [6] DEBUG: dest_addr_ton: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6] DEBUG: dest_addr_npi: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6] DEBUG: destination_addr: "alfa"
2012-02-02 14:03:14 [18084] [6] DEBUG: esm_class: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6] DEBUG: protocol_id: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6] DEBUG: priority_flag: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6] DEBUG: schedule_delivery_time: NULL< BR>2012-02-02 14:03:14 [18084] [6] DEBUG: validity_period: NULL
2012-02-02 14:03:14 [18084] [6] DEBUG: registered_delivery: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6] DEBUG: data_coding: 24 = 0x00000018
2012-02-02 14:03:14 [18084] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6] DEBUG: sm_length: 10 = 0x0000000a
2012-02-02 14:03:14 [18084] [6] DEBUG: short_message:
2012-02-02 14:03:14 [18084] [6] DEBUG: Octet string at 0x8717228:
2012-02-02 14:03:14 [18084] [6] DEBUG: len: 10
2012-02-02 14:03:14 [18084] [6] DEBUG: size: 11
2012-02-02 14:03:14 [18084] [6] DEBUG: immutable: 0
2012-02-02 14:03:14 [18084] [6] DEBUG: &nbs p; data: 00 48 00 65 00 6c 00 6c 00 6f .H.e.l.l.o
2012-02-02 14:03:14 [18084] [6] DEBUG: Octet string dump ends.
2012-02-02 14:03:14 [18084] [6] DEBUG: rut_message_id: "55873"
2012-02-02 14:03:14 [18084] [6] DEBUG: rut_created_ts: "20120202140502"
2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP PDU dump ends.
2012-02-02 14:03:14 [18084] [6] WARNING: smsbox_list empty!
2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP[SMPP:xxxxxxxxxxxxxxxx:smpp]: Sending PDU:
2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP PDU 0x87174c8 dump:
2012-02-02 14:03:14 [18084] [6] DEBUG: type_name: deliver_sm_resp
2012-02-02 14:03:14 [18084] [6] DEBUG: command_id: 2147483653 = 0x80000005
2012-02-02 14:03:14 [18084] [6] DEBUG: command_status: 0 = 0x00000000
2012-02-02 14:03:14 [18084] [6 ] DEBUG: sequence_number: 5 = 0x00000005
2012-02-02 14:03:14 [18084] [6] DEBUG: message_id: NULL
2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP PDU dump ends.
Regards, Vit.
On Thu, 2 Feb 2012 08:21:32 -0500
Alejandro Guerrieriwrote:
> Hrm, I don't see the smpp-tlv group in there, is it on
>one of the includes?
>
> Put the smsc on log-level 0 and see if you can get any
>relevant log lines
> from there.
>
> Regards,
>
> Alex
>
> On Thu, Feb 2, 2012 at 7:28 AM,
>wrote:
>
>> Hello,
>>
>> I’m configuring Kannel , and I got a problem with
>>receiving TLV fields ,
>> as in description is written they should appear at the
>>meta data field. I
>> see that bearbox receives all data correctly but then in
>>requ est and in the
>> database field is Null. Where could be the problem? I
>>correctly pass tlv
>> fields in submits and they are written to database. Got
>>problem with MO
>> messages(Deliver_SM).
>>
>> I need an advice where could be the problem , I’ve tried
>>many things but
>> still don’t have MO meta data in Database or HTTP
>>request in meta data
>> field.
>>
>> 3 boxes up Bearbox smsbox sqlbox
>>
>> meta_data: NULL
>>
>> my sendsms is:
>>
>>
>> http://localhost:13013/cgi-bin/sendsms?username=sender&password=trup&from=alfa&to=45633463463%&meta-data="" %26destination%3d%25P%26meta-data%3d%25D%0d%0a
>>
>> **** **
>>
>> The LOGS:
>>
>> Bearbox:
>>
>> 2012-02-02 14:03:14 Receive SMS [xxxxxxxxxxxxxxxxxxxxx]
>>[SVC:]
>> [ACT:2xxxxxxxxxxx] [BINF:] [FID:]
>> [META:?smpp?rut_message_id=55873&rut_created_ts=20120202140502&]
>> [from:+45633463463] [to:alfa] [flags:0:2:-1:0:-1]
>> [msg:10:00480065006C006C006F] [udh:0:]
>>
>> SMSbox:
>>
>> Path: /cgi-bin/dlr3.php
>>
>> 2012-02-02 14:11:17 [18097] [9] DEBUG: Query:
>> dlr-mask=31&status=8&source=45633463463&destination=alfa&meta-data= "">>>
>> ** **
>>
>> 2012-02-02 14:11:17 [18097] [9] DEBUG: Fragment:
>>(null)
>>
>> …
>>
>> ..
>>
>> HTTP: Queue contains 1 o utstanding requests
>>
>> 2012-02-02 14:11:17 [18097] [6] DEBUG: HTTP: Retrying
>>request <
>> http://xxxxxx/cgi-bin/dlr3.php?dlr-mask=31&status=8&sourc
>>
>> e=45633463463&destination=alfa&meta-data= "">>>
>> > (5/10)
>>
>>
>> Configuration:
>>
>>
>>
>>
>>
>> group = smsc
>> smsc = smpp
>> system-type = "VAS"
>> interface-version = 34
>> throughput = 25
>> host = xxx
>> port = xxx
>> transceiver-mode = 1
>> smsc-username = xxx
>> smsc-password = xxx
>> #my-number = "sender-prefix"
>> enquire-link-interval = 60
>> source-addr-autodetect = false
>> source-addr-ton = 5
>> source-addr-npi = 0
>> dest-addr-ton = 1
>> dest-addr-npi = 0 < BR>>> msg-id-type = 0x03
>> log-file = "/var/log/kannel/operator.log"
>> log-level = 0
>>
>> group = core
>> admin-port = 13000
>> admin-password = xxx
>> admin-deny-ip = "*.*.*.*"
>> admin-allow-ip = ""
>> box-deny-ip = "*.*.*.*"
>> box-allow-ip = "ip..."
>> log-file = "/var/log/kannel/bearerbox.log"
>> access-log = "/var/log/kannel/access.log"
>> log-level = 0
>> dlr-storage = mysql
>> unified-prefix = "+371"
>> smsbox-port = 13001
>>
>> include = "/etc/kannel/tlv.conf"
>>
>> include = "/etc/kannel/dlr.conf"
>>
>> include = "/etc/kannel/smpp-smsc.conf"
>>
>> include = "/etc/kannel/smsbox.conf"
>>
>> group = smsbox-route
>> smsbox-id = "SMS_Box;MySQL_Box"
>>
>> include = "/etc/kannel /sendsms-users.conf"
>>
>> include = "/etc/kannel/sms-service.conf"
>>
>> group = smsbox
>> smsbox-id = SMS_Box
>> #smsbox-port = 13014
>> bearerbox-host = 127.0.0.1
>> bearerbox-port = 13002
>> sendsms-port = 13013
>> log-file = "/var/log/kannel/smsbox.log"
>> log-level = 0
>> access-log = "/var/log/kannel/sms-access.log"
>> sendsms-chars = "0123456789"
>> http-request-retry = 10
>> http-queue-delay = 60
>> max-pending-requests = 10
>> #mo-recode = no
>> mo-recode = true
>>
>> group = sendsms-user
>> username = sender
>> password = trup
>> max-messages = 1
>> concatenation = true
>> dlr-url = ""
>>
>> group = sms-service
>> keyword = default
>> text = "No services defined"
>> catch-all = true
>> accept-x-kannel-headers = true
>> post-url = ""
>>
>> group = sqlbox
>> id = sqlbox-db
>> smsbox-id = MySQL_Box
>> global-sender = "alfa"
>> bearerbox-host = 127.0.0.1
>> bearerbox-port = 13001
>> smsbox-port = 13002
>> smsbox-port-ssl = false
>> sql-log-table = sent_sms
>> sql-insert-table = send_sms
>> log-file = "/var/log/kannel/sqlbox.log"
>> log-level = 0
>>
>>
>> group = mysql-connection
>> id = sqlbox-db
>> host = localhost
>> username =
>> password =
> > database =
>> max-connections = 3
>>
>>
>>
>>
--- End Message ---
