7-bit characters network size

roko <[email protected]>
Newsgroups gmane.comp.mobile.kannel.user
Message-ID <[email protected]>
Hi all

I'm using kannel 1.4.4 and smppsim to run a simple test.  I'm sending all (printable) 7-bit characters, like this:

curl -G "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&to=123&dlr-mask=31&smsc=smppsim&coding=0" --data-urlencode "dlr-url=http://192.168.1.112/dlr.php?sender=%P&type=%d" --data-urlencode 'text=@£$¥èéùìòÇØøÅåΔ_ΦΓΛΩΠΨΣΘΞÆæßÉ !"#¤%&'\''()*+,-./0123456789:;<=>?¡ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÑܧ¿abcdefghijklmnopqrstuvwxyzäöñüà'

Here is the log from bearerbox:

2018-05-17 16:49:05 [21654] [8] DEBUG: SMPP[smppsim]: Sending PDU:
2018-05-17 16:49:05 [21654] [8] DEBUG: SMPP PDU 0x7f1f00000a00 dump:
2018-05-17 16:49:05 [21654] [8] DEBUG:   type_name: submit_sm
2018-05-17 16:49:05 [21654] [8] DEBUG:   command_id: 4 = 0x00000004
2018-05-17 16:49:05 [21654] [8] DEBUG:   command_status: 0 = 0x00000000
2018-05-17 16:49:05 [21654] [8] DEBUG:   sequence_number: 20 = 0x00000014
2018-05-17 16:49:05 [21654] [8] DEBUG:   service_type: NULL
2018-05-17 16:49:05 [21654] [8] DEBUG:   source_addr_ton: 2 = 0x00000002
2018-05-17 16:49:05 [21654] [8] DEBUG:   source_addr_npi: 1 = 0x00000001
2018-05-17 16:49:05 [21654] [8] DEBUG:   source_addr: "13013"
2018-05-17 16:49:05 [21654] [8] DEBUG:   dest_addr_ton: 2 = 0x00000002
2018-05-17 16:49:05 [21654] [8] DEBUG:   dest_addr_npi: 1 = 0x00000001
2018-05-17 16:49:05 [21654] [8] DEBUG:   destination_addr: "123"
2018-05-17 16:49:05 [21654] [8] DEBUG:   esm_class: 3 = 0x00000003
2018-05-17 16:49:05 [21654] [8] DEBUG:   protocol_id: 0 = 0x00000000
2018-05-17 16:49:05 [21654] [8] DEBUG:   priority_flag: 0 = 0x00000000
2018-05-17 16:49:05 [21654] [8] DEBUG:   schedule_delivery_time: NULL
2018-05-17 16:49:05 [21654] [8] DEBUG:   validity_period: NULL
2018-05-17 16:49:05 [21654] [8] DEBUG:   registered_delivery: 1 = 0x00000001
2018-05-17 16:49:05 [21654] [8] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2018-05-17 16:49:05 [21654] [8] DEBUG:   data_coding: 0 = 0x00000000
2018-05-17 16:49:05 [21654] [8] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2018-05-17 16:49:05 [21654] [8] DEBUG:   sm_length: 125 = 0x0000007d
2018-05-17 16:49:05 [21654] [8] DEBUG:   short_message:
2018-05-17 16:49:05 [21654] [8] DEBUG:    Octet string at 0x7f1f000055b0:
2018-05-17 16:49:05 [21654] [8] DEBUG:      len:  125
2018-05-17 16:49:05 [21654] [8] DEBUG:      size: 165
2018-05-17 16:49:05 [21654] [8] DEBUG:      immutable: 0
2018-05-17 16:49:05 [21654] [8] DEBUG:      data: 00 01 02 03 04 05 06 07 08 09 0b 0c 0e 0f 10 11   ................
2018-05-17 16:49:05 [21654] [8] DEBUG:      data: 12 13 14 15 16 17 18 19 1a 1c 1d 1e 1f 20 21 22   ............. !"
2018-05-17 16:49:05 [21654] [8] DEBUG:      data: 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32   #$%&'()*+,-./012
2018-05-17 16:49:05 [21654] [8] DEBUG:      data: 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42   3456789:;<=>?@AB
2018-05-17 16:49:05 [21654] [8] DEBUG:      data: 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52   CDEFGHIJKLMNOPQR
2018-05-17 16:49:05 [21654] [8] DEBUG:      data: 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62   STUVWXYZ[\]^_`ab
2018-05-17 16:49:05 [21654] [8] DEBUG:      data: 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72   cdefghijklmnopqr
2018-05-17 16:49:05 [21654] [8] DEBUG:      data: 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f            stuvwxyz{|}~.
2018-05-17 16:49:05 [21654] [8] DEBUG:    Octet string dump ends.
2018-05-17 16:49:05 [21654] [8] DEBUG: SMPP PDU dump ends.

Here is the log from smppsim:

2018.05.17 16:50:41 667 INFO    13 : Standard SUBMIT_SM:
2018.05.17 16:50:41 668 INFO    13 Hex dump (166) bytes:
2018.05.17 16:50:41 668 INFO    13 000000A6:00000004:00000000:00000018:
2018.05.17 16:50:41 668 INFO    13 00020131:33303133:00020131:32330003:
2018.05.17 16:50:41 668 INFO    13 00000000:01000000:7D000102:03040506:
2018.05.17 16:50:41 668 INFO    13 0708090B:0C0E0F10:11121314:15161718:
2018.05.17 16:50:41 668 INFO    13 191A1C1D:1E1F2021:22232425:26272829:
2018.05.17 16:50:41 668 INFO    13 2A2B2C2D:2E2F3031:32333435:36373839:
2018.05.17 16:50:41 668 INFO    13 3A3B3C3D:3E3F4041:42434445:46474849:
2018.05.17 16:50:41 668 INFO    13 4A4B4C4D:4E4F5051:52535455:56575859:
2018.05.17 16:50:41 668 INFO    13 5A5B5C5D:5E5F6061:62636465:66676869:
2018.05.17 16:50:41 668 INFO    13 6A6B6C6D:6E6F7071:72737475:76777879:
2018.05.17 16:50:41 668 INFO    13 7A7B7C7D:7E7F
2018.05.17 16:50:41 668 INFO    13 cmd_len=166,cmd_id=4,cmd_status=0,seq_no=24,service_type=,source_addr_ton=2
2018.05.17 16:50:41 668 INFO    13 source_addr_npi=1,source_addr=13013,dest_addr_ton=2,dest_addr_npi=1
2018.05.17 16:50:41 668 INFO    13 dest_addr=123,esm_class=3,protocol_ID=0,priority_flag=0,schedule_delivery_time=
2018.05.17 16:50:41 668 INFO    13 validity_period=,registered_delivery_flag=1,replace_if_present_flag=0
2018.05.17 16:50:41 668 INFO    13 data_coding=0,sm_default_msg_id=0,sm_length=125
2018.05.17 16:50:41 668 INFO    13 short_message=

                                                        ▒▒ !"#$%&'()*+
2018.05.17 16:50:41 668 INFO    13 -./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
2018.05.17 16:50:41 668 INFO    13  

I can see that the the message char's are 7-bit encoded.. but is not using 8 bits per char ? Is this how is suppose to work ? I'm missing some configuration parameter ?  My Kannel details:

2018-05-17 16:53:51 [21859] [0] DEBUG: Kannel bearerbox version `1.4.4'.
Build `Mar 26 2018 15:47:30', compiler `4.8.5'.
System Linux, release 4.4.126-48-default, version #1 SMP Sat Apr 7 05:22:50 UTC 2018 (f24992c), machine x86_64.
Hostname gamma, IP 127.0.0.1.
Libxml version 2.9.4.
Using native malloc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.