Hi Willy

 

Please find information as requested below.

 

Regards

Melvin

 

 

Kannel bearerbox version `1.4.3'. Build `Sep 26 2014 16:54:15',

compiler `3.4.6'.

System SunOS, release 5.10, version Generic_127127-11, 

machine sun4u.

Hostname sms-gateway, IP 10.101.101.10.

Libxml version 2.6.23. 

Compiled with MySQL 5.0.27, using MySQL 5.0.27. Using native malloc. 

__________________________________________________________________

#SMSC SMPP LINK 1

group = smsc

smsc = smpp

smsc-id = smsc

host = X.X.X.X

port = 5020

transceiver-mode = true

smsc-username = "xxxxxx"

smsc-password = "xxxxxxx"

system-type = "VMA"

address-range = ""

interface-version = 34

enquire-link-interval = 60

reconnect-delay = 15

source-addr-ton = 3

source-addr-npi = 1

dest-addr-npi = 1

dest-addr-ton = 1

throughput = 20

alt-addr-charset = "GSM"

msg-id-type = 1

__________________________________________________________________________

2014-09-30 19:44:06 [2289] [7] DEBUG:   type_name: submit_sm

2014-09-30 19:44:06 [2289] [7] DEBUG:   command_id: 4 = 0x00000004

2014-09-30 19:44:06 [2289] [7] DEBUG:   command_status: 0 = 0x00000000

2014-09-30 19:44:06 [2289] [7] DEBUG:   sequence_number: 11 = 0x0000000b

2014-09-30 19:44:06 [2289] [7] DEBUG:   service_type: NULL

2014-09-30 19:44:06 [2289] [7] DEBUG:   source_addr_ton: 3 = 0x00000003

2014-09-30 19:44:06 [2289] [7] DEBUG:   source_addr_npi: 1 = 0x00000001

2014-09-30 19:44:06 [2289] [7] DEBUG:   source_addr: "0812222222"

2014-09-30 19:44:06 [2289] [7] DEBUG:   dest_addr_ton: 1 = 0x00000001

2014-09-30 19:44:06 [2289] [7] DEBUG:   dest_addr_npi: 1 = 0x00000001

2014-09-30 19:44:06 [2289] [7] DEBUG:   destination_addr: "0811111111"

2014-09-30 19:44:06 [2289] [7] DEBUG:   esm_class: 3 = 0x00000003

2014-09-30 19:44:06 [2289] [7] DEBUG:   protocol_id: 0 = 0x00000000

2014-09-30 19:44:06 [2289] [7] DEBUG:   priority_flag: 0 = 0x00000000

2014-09-30 19:44:06 [2289] [7] DEBUG:   schedule_delivery_time: NULL

2014-09-30 19:44:06 [2289] [7] DEBUG:   validity_period: NULL

2014-09-30 19:44:06 [2289] [7] DEBUG:   registered_delivery: 1 = 0x00000001

2014-09-30 19:44:06 [2289] [7] DEBUG:   replace_if_present_flag: 0 =
0x00000000

2014-09-30 19:44:06 [2289] [7] DEBUG:   data_coding: 0 = 0x00000000

2014-09-30 19:44:06 [2289] [7] DEBUG:   sm_default_msg_id: 0 = 0x00000000

2014-09-30 19:44:06 [2289] [7] DEBUG:   sm_length: 7 = 0x00000007

2014-09-30 19:44:06 [2289] [7] DEBUG:   short_message: "Testing"

2014-09-30 19:44:06 [2289] [7] DEBUG: SMPP PDU dump ends.

2014-09-30 19:44:07 [2289] [7] DEBUG: SMPP[smsc]: Got PDU:

2014-09-30 19:44:07 [2289] [7] DEBUG: SMPP PDU 158228 dump:

2014-09-30 19:44:07 [2289] [7] DEBUG:   type_name: submit_sm_resp

2014-09-30 19:44:07 [2289] [7] DEBUG:   command_id: 2147483652 = 0x80000004

2014-09-30 19:44:07 [2289] [7] DEBUG:   command_status: 0 = 0x00000000

2014-09-30 19:44:07 [2289] [7] DEBUG:   sequence_number: 11 = 0x0000000b

2014-09-30 19:44:07 [2289] [7] DEBUG:   message_id: "471b33a3"

2014-09-30 19:44:07 [2289] [7] DEBUG: SMPP PDU dump ends.

2014-09-30 19:44:07 [2289] [7] DEBUG: DLR[mysql]: Adding DLR smsc=smsc,
ts=0, src=0812222222, dst=0811111111, mask=31, boxc=

2014-09-30 19:44:07 [2289] [7] DEBUG: sql: INSERT INTO dlr (smsc, ts,
source, destination, service, url, mask, boxc, status) VALUES ('smsc', '0',

'0812222222', '0811111111', 'test', '
<http://10.101.101.10/temp_dlr_log.php?type=%25d&id=707569>
http://10.101.101.10/temp_dlr_log.php?type=%d&id=707569', '31', '', '0');

2014-09-30 19:44:07 [2289] [7] DEBUG: SMSC[smsc]: creating DLR message

2014-09-30 19:44:07 [2289] [7] DEBUG: SMSC[smsc]: DLR =
<http://10.101.101.10/temp_dlr_log.php?type=%25d&id=707569>
http://10.101.101.10/temp_dlr_log.php?type=%d&id=707569

 

 

2014-09-30 19:44:09 [2289] [7] DEBUG:   type_name: deliver_sm

2014-09-30 19:44:09 [2289] [7] DEBUG:   command_id: 5 = 0x00000005

2014-09-30 19:44:09 [2289] [7] DEBUG:   command_status: 0 = 0x00000000

2014-09-30 19:44:09 [2289] [7] DEBUG:   sequence_number: 4674300 =
0x004752fc

2014-09-30 19:44:09 [2289] [7] DEBUG:   service_type: NULL

2014-09-30 19:44:09 [2289] [7] DEBUG:   source_addr_ton: 1 = 0x00000001

2014-09-30 19:44:09 [2289] [7] DEBUG:   source_addr_npi: 1 = 0x00000001

2014-09-30 19:44:09 [2289] [7] DEBUG:   source_addr: "0811111111"

2014-09-30 19:44:09 [2289] [7] DEBUG:   dest_addr_ton: 3 = 0x00000003

2014-09-30 19:44:09 [2289] [7] DEBUG:   dest_addr_npi: 1 = 0x00000001

2014-09-30 19:44:09 [2289] [7] DEBUG:   destination_addr: "0812222222"

2014-09-30 19:44:09 [2289] [7] DEBUG:   esm_class: 4 = 0x00000004

2014-09-30 19:44:09 [2289] [7] DEBUG:   protocol_id: 0 = 0x00000000

2014-09-30 19:44:09 [2289] [7] DEBUG:   priority_flag: 0 = 0x00000000

2014-09-30 19:44:09 [2289] [7] DEBUG:   schedule_delivery_time: NULL

2014-09-30 19:44:09 [2289] [7] DEBUG:   validity_period: NULL

2014-09-30 19:44:09 [2289] [7] DEBUG:   registered_delivery: 0 = 0x00000000

2014-09-30 19:44:09 [2289] [7] DEBUG:   replace_if_present_flag: 0 =
0x00000000

2014-09-30 19:44:09 [2289] [7] DEBUG:   data_coding: 0 = 0x00000000

2014-09-30 19:44:09 [2289] [7] DEBUG:   sm_default_msg_id: 0 = 0x00000000

2014-09-30 19:44:09 [2289] [7] DEBUG:   sm_length: 122 = 0x0000007a

2014-09-30 19:44:09 [2289] [7] DEBUG:   short_message:

2014-09-30 19:44:09 [2289] [7] DEBUG:    Octet string at 1238e8:

2014-09-30 19:44:09 [2289] [7] DEBUG:      len:  122

2014-09-30 19:44:09 [2289] [7] DEBUG:      size: 123

2014-09-30 19:44:09 [2289] [7] DEBUG:      immutable: 0

2014-09-30 19:44:09 [2289] [7] DEBUG:      data: 69 64 3a 31 31 39 32 39 36
35 30 32 37 20 73 75   id:1192965027 su

2014-09-30 19:44:09 [2289] [7] DEBUG:      data: 62 3a 30 30 31 20 64 6c 76
72 64 3a 30 30 31 20   b:001 dlvrd:001

2014-09-30 19:44:09 [2289] [7] DEBUG:      data: 73 75 62 6d 69 74 20 64 61
74 65 3a 31 34 30 39   submit date:1409

2014-09-30 19:44:09 [2289] [7] DEBUG:      data: 33 30 31 39 34 34 20 64 6f
6e 65 20 64 61 74 65   301944 done date

2014-09-30 19:44:09 [2289] [7] DEBUG:      data: 3a 31 34 30 39 33 30 31 39
34 34 20 73 74 61 74   :1409301944 stat

2014-09-30 19:44:09 [2289] [7] DEBUG:      data: 3a 44 45 4c 49 56 52 44 20
65 72 72 3a 30 30 30   :DELIVRD err:000

2014-09-30 19:44:09 [2289] [7] DEBUG:      data: 20 74 65 78 74 3a 00 00 00
00 00 00 00 00 00 00    text:..........

2014-09-30 19:44:09 [2289] [7] DEBUG:      data: 00 00 00 00 00 00 00 00 00
00                     ..........

2014-09-30 19:44:09 [2289] [7] DEBUG:    Octet string dump ends.

2014-09-30 19:44:09 [2289] [7] DEBUG: SMPP PDU dump ends.

2014-09-30 19:44:09 [2289] [7] DEBUG: SMPP[smsc] handle_pdu, got DLR

2014-09-30 19:44:09 [2289] [7] DEBUG: DLR[mysql]: Looking for DLR smsc=smsc,
ts=0, dst=0811111111, type=1

2014-09-30 19:44:09 [2289] [7] DEBUG: sql: SELECT mask, service, url,
source, destination, boxc FROM dlr WHERE smsc='smsc' AND ts='0';

2014-09-30 19:44:09 [2289] [7] DEBUG: Found entry, row[0]=31, row[1]=test,
row[2]=http://10.101.101.10/temp_dlr_log.php?type=%d&id=707569, row[3]

=0812222222, row[4]=0811111111 row[5]=

2014-09-30 19:44:09 [2289] [7] DEBUG: DLR[mysql]: created DLR message for
URL < <http://10.101.101.10/temp_dlr_log.php?type=%25d&id=707569>
http://10.101.101.10/temp_dlr_log.php?type=%d&id=707569>

2014-09-30 19:44:09 [2289] [7] DEBUG: removing DLR from database

2014-09-30 19:44:09 [2289] [7] DEBUG: sql: DELETE FROM dlr WHERE smsc='smsc'
AND ts='0' LIMIT 1;

2014-09-30 19:44:09 [2289] [7] DEBUG: SMPP[smsc]: Sending PDU:

2014-09-30 19:44:09 [2289] [7] DEBUG: SMPP PDU 155a30 dump:

2014-09-30 19:44:09 [2289] [7] DEBUG:   type_name: deliver_sm_resp

2014-09-30 19:44:09 [2289] [7] DEBUG:   command_id: 2147483653 = 0x80000005

2014-09-30 19:44:09 [2289] [7] DEBUG:   command_status: 0 = 0x00000000

2014-09-30 19:44:09 [2289] [7] DEBUG:   sequence_number: 4674300 =
0x004752fc

2014-09-30 19:44:09 [2289] [11] DEBUG: send_msg: sending msg to box:
<127.0.0.1>

2014-09-30 19:44:09 [2289] [7] DEBUG:   message_id: NULL

2014-09-30 19:44:09 [2289] [7] DEBUG: SMPP PDU dump ends.

 

 

 

From: Willy Mularto [mailto:sangpr...@gmail.com] 
Sent: 30 September 2014 04:20 AM
To: Melvin Oberem
Cc: kannel users@kannel.org
Subject: Re: HTTPClient

 

Please dump the log-level to 0 and share us. 

 

 

 

Willy Mularto

SMS Gateway, Content Provider, Mobile Solution Specialist

M: +62811923464, +62818923464

PIN BBM: 74924429

 

 

 

On Sep 30, 2014, at 1:18 AM, Melvin Oberem <obere...@telkomsa.net> wrote:





Hi

 

Thanks for the reply, but I find that "msg-id-type" does not work on version
1.4.3.

 

No matter what the value for msg-id-type is set, the message ID is always
written into the sql table as "0", so when the deliver_sm is received it is
also convert to a "0" resulting in the first entry found in the mysql table
being updated.

 

I have tried all formats msg-id-type = 0x01 or 1 or 01 , even tried closing
them in quotes. Also tried all possible 0x00, 0x01, 0x02 and 0x03.

 

Regards

Melvin

 

From: Willy Mularto [mailto:sangpr...@gmail.com] 
Sent: 29 September 2014 03:53 AM
To: Melvin Oberem
Cc: kannel users@kannel.org
Subject: Re: HTTPClient

 

msg-id-type is your answer. Check user guide ;)

 

 

 

Willy Mularto

SMS Gateway, Content Provider, Mobile Solution Specialist

M: +62811923464, +62818923464

PIN BBM: 74924429

 

 

 

On Sep 27, 2014, at 4:18 AM, Melvin Oberem < <mailto:obere...@telkomsa.net>
obere...@telkomsa.net> wrote:






Hi

 

I have been having problems with DLR reports because of submit_sm_resp being
in hex and DLR deiver_sms being in decimal.

I have been using kannel version 1.4.1 for many years without problems, but
have now moved to a new SMSC, which the DLR conversion cannot be changed on
the SMSC, and needs to be done on application.

 

The DLR fix was patched in version 1.4.3 which I have tried to see if the
msg-id-type configs work, but I am experiencing the following problem with
version 1.4.3, the HTTPClient is created and immediately Destroyed, if
coming in from a different server. I works if sent to the application on the
same server.

 

2014-09-26 22:28:42 [14746] [2] DEBUG: HTTP: Creating HTTPClient for
`10.101.101.10'.

2014-09-26 22:28:42 [14746] [2] DEBUG: HTTP: Created HTTPClient area d9248.

2014-09-26 22:28:42 [14746] [3] DEBUG: HTTP: Destroying HTTPClient area
d9248.

2014-09-26 22:28:42 [14746] [3] DEBUG: HTTP: Destroying HTTPClient for
`10.101.101.10'.

 

I am using the same settings as per version 1.4.1 which works perfectly as
per below.

 

2014-09-26 22:34:52 [17806] [2] DEBUG: HTTP: Creating HTTPClient for
`10.101.101.10.

2014-09-26 22:34:52 [17806] [2] DEBUG: HTTP: Created HTTPClient area d6ec0.

2014-09-26 22:34:52 [17806] [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <10.101.101.10>

2014-09-26 22:34:52 [17806] [3] INFO: sendsms used by <test>

2014-09-26 22:34:52 [17806] [3] INFO: sendsms sender:<test:0811111111>
(10.101.101.10) to:<0812345678> msg:<test>

2014-09-26 22:34:52 [17806] [3] DEBUG: message length 4, sending 1 messages

2014-09-26 22:34:52 [17806] [3] DEBUG: Status: 202 Answer: <Sent.>

2014-09-26 22:34:52 [17806] [3] DEBUG: HTTP: Destroying HTTPClient area
d6ec0.

2014-09-26 22:34:52 [17806] [3] DEBUG: HTTP: Destroying HTTPClient for
`10.101.101.10.

 

 

Has anybody seen this before and maybe have an answer.

 

Regards

Melvin

 

Reply via email to