On Wednesday 24 June 2020 at 13:21:27, nashwan Al-Mawri wrote:

> thank antony  for your help i trun the debugging on and was trying to find
> something could lead me to anu clue but no success

Once you have turned *debug* logging on, you should get entries such as the 
following in /var/log/kannel/kannel.log for an incoming SMS:

2020-06-24 07:09:58 [21481] [7] DEBUG: SMPP[Provider]: throughput (0.00,0.00)
2020-06-24 07:09:58 [21481] [7] DEBUG: Optional parameter tag (0x0204)
2020-06-24 07:09:58 [21481] [7] DEBUG: Optional parameter length read as 2
2020-06-24 07:09:58 [21481] [7] DEBUG: SMPP[Provider]: Got PDU:
2020-06-24 07:09:58 [21481] [7] DEBUG: SMPP PDU 0x7f9a1c000e80 dump:
2020-06-24 07:09:58 [21481] [7] DEBUG:   type_name: deliver_sm
2020-06-24 07:09:58 [21481] [7] DEBUG:   command_id: 5 = 0x00000005
2020-06-24 07:09:58 [21481] [7] DEBUG:   command_status: 0 = 0x00000000
2020-06-24 07:09:58 [21481] [7] DEBUG:   sequence_number: 95 = 0x0000005f
2020-06-24 07:09:58 [21481] [7] DEBUG:   service_type: "NOREP"
2020-06-24 07:09:58 [21481] [7] DEBUG:   source_addr_ton: 5 = 0x00000005
2020-06-24 07:09:58 [21481] [7] DEBUG:   source_addr_npi: 0 = 0x00000000

2020-06-24 07:09:58 [21481] [7] DEBUG:   source_addr: "WhatsApp"
2020-06-24 07:09:58 [21481] [7] DEBUG:   dest_addr_ton: 1 = 0x00000001
2020-06-24 07:09:58 [21481] [7] DEBUG:   dest_addr_npi: 1 = 0x00000001
2020-06-24 07:09:58 [21481] [7] DEBUG:   destination_addr: "ccxxxyyyzzz"
2020-06-24 07:09:58 [21481] [7] DEBUG:   esm_class: 0 = 0x00000000
2020-06-24 07:09:58 [21481] [7] DEBUG:   protocol_id: 0 = 0x00000000
2020-06-24 07:09:58 [21481] [7] DEBUG:   priority_flag: 0 = 0x00000000
2020-06-24 07:09:58 [21481] [7] DEBUG:   schedule_delivery_time: NULL
2020-06-24 07:09:58 [21481] [7] DEBUG:   validity_period: NULL
2020-06-24 07:09:58 [21481] [7] DEBUG:   registered_delivery: 0 = 0x00000000
2020-06-24 07:09:58 [21481] [7] DEBUG:   replace_if_present_flag: 0 = 
0x00000000
2020-06-24 07:09:58 [21481] [7] DEBUG:   data_coding: 0 = 0x00000000
2020-06-24 07:09:58 [21481] [7] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2020-06-24 07:09:58 [21481] [7] DEBUG:   sm_length: 142 = 0x0000008e
2020-06-24 07:09:58 [21481] [7] DEBUG:   short_message:
2020-06-24 07:09:58 [21481] [7] DEBUG:    Octet string at 0x7f9a1c006840:
2020-06-24 07:09:58 [21481] [7] DEBUG:      len:  142
2020-06-24 07:09:58 [21481] [7] DEBUG:      size: 143
2020-06-24 07:09:58 [21481] [7] DEBUG:      immutable: 0
2020-06-24 07:09:58 [21481] [7] DEBUG:      data: 59 6f 75 72 20 57 68 61 74 
73 41 70 70 20 42 75   Your WhatsApp Bu
2020-06-24 07:09:58 [21481] [7] DEBUG:      data: 73 69 6e 65 73 73 20 63 6f 
64 65 20 3x 3x 3x 2d   siness code xxx-
2020-06-24 07:09:58 [21481] [7] DEBUG:      data: 3x 3x 3x 0a 0a 59 6f 75 20 
63 61 6e 20 61 6c 73   xxx..You can als
2020-06-24 07:09:58 [21481] [7] DEBUG:      data: 6f 20 74 61 70 20 74 68 69 
73 20 6c 69 6e 6b 20   o tap this link 
2020-06-24 07:09:58 [21481] [7] DEBUG:      data: 74 6f 20 76 65 72 69 66 79 
20 79 6f 75 72 20 70   to verify your p
2020-06-24 07:09:58 [21481] [7] DEBUG:      data: 68 6f 6e 65 3a 20 62 2e 77 
68 61 74 73 61 70 70   hone: b.whatsapp
2020-06-24 07:09:58 [21481] [7] DEBUG:      data: 2e 63 6f 6d 2f 3x 3x 3x 3x 
3x 3x 0a 0a 44 6f 6e   .com/xxxxxx..Don
2020-06-24 07:09:58 [21481] [7] DEBUG:      data: 27 74 20 73 68 61 72 65 20 
74 68 69 73 20 63 6f   't share this co
2020-06-24 07:09:58 [21481] [7] DEBUG:      data: 64 65 20 77 69 74 68 20 6f 
74 68 65 72 73         de with others
2020-06-24 07:09:58 [21481] [7] DEBUG:    Octet string dump ends.
2020-06-24 07:09:58 [21481] [7] DEBUG:   user_message_reference: 24199 = 
0x00005e87
2020-06-24 07:09:58 [21481] [7] DEBUG: SMPP PDU dump ends.
2020-06-24 07:09:58 [21481] [10] DEBUG: send_msg: sending msg to box: 
<127.0.0.1>
2020-06-24 07:09:58 [21481] [10] DEBUG: boxc_sender: sent message to 
<127.0.0.1>
2020-06-24 07:09:58 [21481] [7] DEBUG: SMPP[Provider]: Sending PDU:
2020-06-24 07:09:58 [21481] [7] DEBUG: SMPP PDU 0x7f9a1c006910 dump:
2020-06-24 07:09:58 [21481] [7] DEBUG:   type_name: deliver_sm_resp
2020-06-24 07:09:58 [21481] [7] DEBUG:   command_id: 2147483653 = 0x80000005
2020-06-24 07:09:58 [21481] [7] DEBUG:   command_status: 0 = 0x00000000
2020-06-24 07:09:58 [21481] [7] DEBUG:   sequence_number: 95 = 0x0000005f
2020-06-24 07:09:58 [21481] [7] DEBUG:   message_id: NULL
2020-06-24 07:09:58 [21481] [7] DEBUG: SMPP PDU dump ends.
2020-06-24 07:09:58 [21481] [7] DEBUG: SMPP[Provider]: throughput (0.00,0.00)
2020-06-24 07:09:58 [21481] [9] DEBUG: boxc_receiver: got ack

In my /etc/kannel/kannel.conf, under the CORE sections, I have:

log-file = "/var/log/kannel/kannel.log"
log-level = 0

See 
https://www.kannel.org/download/1.4.5/userguide-1.4.5/userguide.html#AEN482


Regards,


Antony.

-- 
If my advice was worth anything, I wouldn't just give it away.

                                                   Please reply to the list;
                                                         please *don't* CC me.

Reply via email to