The question marks and empty messages are likely because you are receiving a UCS-2 encoded message, but your data_coding is set to 0. What does the access log shows for these messages?
On Wed, Jun 24, 2020 at 1:35 PM Tolga Ulas <tolga.u...@tolgaulas.com> wrote: > This is a deliver_sm for delivery report (esm_class=4) and it's a report > of the status of the sms you've sent. For the structure of deliver_sm of > delivery report it please refer to SMPP protocol documentation on the body > of it. I think the smsc you've been connected to has some problem in > character encoding. Did you talk to them? > > Bonus: The content of it is vendor specific, but general tendency is as > follows: > id The message reference of the message. > sub Sub-ID, not used. > dlvrd Value '1' when the message has been delivered, if the message is > still pending '0'. > submit date Submission date and time. > done date Date and time the status has changed, or message delivery time > when stat is set to 'DELIVRD'. > stat Current status of the message. > err Additional error code, provider specific. > text Part of the original message text. > > > > On Wed, Jun 24, 2020 at 3:45 PM nashwan Al-Mawri <nash.ma...@gmail.com> > wrote: > >> I checked the kannel log , and i found out ,the blank sms text on the >> log is ????????? as you can see on the log below , please note that the >> outgoing SMS is unicode characters and it works fine , any suggestions , >> do i have to do any formatting for the incoming sms ,, >> for example out 100 sms 80 will be blank and 20 with the right keyword >> >> thanks >> >> send_msg: sending msg to box: <127.0.0.1> >> 2020-06-24 12:04:37 [2341] [7] DEBUG: SMPP[sourceline1]: throughput >> (0.00,20.00) >> 2020-06-24 12:04:37 [2341] [10] DEBUG: boxc_sender: sent message to >> <127.0.0.1> >> 2020-06-24 12:04:37 [2341] [9] DEBUG: boxc_receiver: got ack >> 2020-06-24 12:04:48 [2341] [7] DEBUG: SMPP[sourceline1]: throughput >> (0.00,20.00) >> 2020-06-24 12:04:48 [2341] [7] DEBUG: SMPP[sourceline1]: Got PDU: >> 2020-06-24 12:04:48 [2341] [7] DEBUG: SMPP PDU 0x7f0dc8000e60 dump: >> 2020-06-24 12:04:48 [2341] [7] DEBUG: type_name: deliver_sm >> 2020-06-24 12:04:48 [2341] [7] DEBUG: command_id: 5 = 0x00000005 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: command_status: 0 = 0x00000000 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: sequence_number: 16792058 = >> 0x010039fa >> 2020-06-24 12:04:48 [2341] [7] DEBUG: service_type: NULL >> 2020-06-24 12:04:48 [2341] [7] DEBUG: source_addr_ton: 2 = 0x00000002 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: source_addr_npi: 1 = >> 0x00000001943594596 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: source_addr: "xxxxxxxxno" >> 2020-06-24 12:04:48 [2341] [7] DEBUG: dest_addr_ton: 2 = 0x00000002 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: dest_addr_npi: 1 = 0x00000001 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: destination_addr: >> "xxxxxxxshortcode" >> 2020-06-24 12:04:48 [2341] [7] DEBUG: esm_class: 4 = 0x00000004 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: protocol_id: 0 = 0x00000000 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: priority_flag: 0 = 0x00000000 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: schedule_delivery_time: NULL >> 2020-06-24 12:04:48 [2341] [7] DEBUG: validity_period: NULL >> 2020-06-24 12:04:48 [2341] [7] DEBUG: registered_delivery: 0 = >> 0x00000000 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: replace_if_present_flag: 0 = >> 0x00000000 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data_coding: 0 = 0x00000000 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: sm_default_msg_id: 0 = 0x00000000 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: sm_length: 114 = 0x00000072 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: short_message: >> 2020-06-24 12:04:48 [2341] [7] DEBUG: Octet string at 0x7f0dc8005b60: >> 2020-06-24 12:04:48 [2341] [7] DEBUG: len: 114 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: size: 115 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: immutable: 0 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 69 64 3a 31 30 30 30 30 >> 31 32 30 30 33 30 31 32 id:1000012003012 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 30 30 36 32 34 30 39 31 >> 36 32 36 31 33 30 30 36 0062409162613006 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 31 20 73 75 62 6d 69 74 >> 20 64 61 74 65 3a 32 30 1 submit date:20 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 30 36 32 34 31 32 30 34 >> 20 64 6f 6e 65 20 64 61 06241204 done da >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 74 65 3a 32 30 30 36 32 >> 34 31 32 30 34 20 73 74 te:2006241204 st >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 61 74 3a 44 45 4c 49 56 >> 52 44 20 65 72 72 3a 30 at:DELIVRD err:0 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 30 30 20 74 65 78 74 3a >> 3f 3f 3f 3f 3f 20 3f 3f 00 text:????? ?? >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 3f 3f >> ?? >> 2020-06-24 12:04:48 [2341] [7] DEBUG: Octet string dump ends. >> >> On Wed, Jun 24, 2020 at 2:39 PM Antony Stone < >> antony.st...@kannel.open.source.it> wrote: >> >>> 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. >>> >>>