I hope you are not sending Unicode messages. If yes check while playsms invoked smabox api, it is not setting dcs=2.
It seems while playsms invoking kannel smsbox api, it is using Unicode feature of smsbox. Sent from my Windows PhoneFrom: Gabri Shally Sent: 21-11-2014 21:27 To: users@kannel.org Subject: short message being truncated dear all, i've got trouble with kannel truncating message down to only 70 char. ### log from smsc ### 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: TP-Validity-Period: 24.0 hours 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: --> AT+CMGS=154^M 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: <-- 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: <-- > 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: send command status: 1 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: --> 0031000B818011525137F10008A78C0030003000300030003000300030003000300030003100300030003000300030003000300030003000320030003000300030003000300030003000300033003000300030003000300030003000300030003400300030003000300030003000300030003000350030003000300030003000300030003000300036003000300030003000300030003000300030 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: --> ^Z 2014-11-21 19:22:36 [31584] [6] DEBUG: AT2[wavecom]: <-- +CMGS: 126 2014-11-21 19:22:36 [31584] [6] DEBUG: AT2[wavecom]: <-- OK 2014-11-21 19:22:36 [31584] [6] DEBUG: AT2[wavecom]: send command status: 0 2014-11-21 19:22:36 [31584] [6] DEBUG: DLR[internal]: Adding DLR smsc=wavecom, ts=126, src=000, dst=08112515731, mask=31, boxc= 2014-11-21 19:22:36 [31584] [6] DEBUG: SMSC[wavecom]: creating DLR message 2014-11-21 19:22:36 [31584] [6] DEBUG: SMSC[wavecom]: DLR = http://localhost/PlaySMS/index.php?app=call&cat=gateway&plugin=kannel&access=dlr&type=%d&smslog_id=129&uid=1 ### end ### from this log we know that kannel trying to send 154 byte of data, but only 126 byte that recognized by modem, which is wavecom by the way. i tough it was wavecom fault. but when i try to decode the PDU data using this online tool http://smspdu.benjaminerhart.com/ it indeed only recognized 70 char too. so, whats wrong? this is the message i try to send: ### log from smsbox ### 2014-11-21 19:22:31 [31633] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2014-11-21 19:22:31 [31633] [2] DEBUG: HTTP: Created HTTPClient area 0x7f8c94000a90. 2014-11-21 19:22:31 [31633] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> 2014-11-21 19:22:31 [31633] [3] INFO: sendsms used by <playsms> 2014-11-21 19:22:31 [31633] [3] INFO: sendsms sender:<playsms:000> (127.0.0.1) to:<08112515731> msg:<00000000001000000000200000000030000000004000000000500000000060000000007000000000800000000090000000001000000000110000000012000000001300000000> 2014-11-21 19:22:31 [31633] [3] DEBUG: Stored UUID edce1d84-7604-4558-a3f6-d8ff9c38c736 2014-11-21 19:22:31 [31633] [3] DEBUG: message length 280, sending 1 messages 2014-11-21 19:22:31 [31633] [3] DEBUG: Status: 202 Answer: <Sent.> 2014-11-21 19:22:31 [31633] [3] DEBUG: Delayed reply - wait for bearerbox 2014-11-21 19:22:31 [31633] [0] DEBUG: Got ACK (0) of edce1d84-7604-4558-a3f6-d8ff9c38c736 2014-11-21 19:22:31 [31633] [0] DEBUG: HTTP: Destroying HTTPClient area 0x7f8c94000a90. 2014-11-21 19:22:31 [31633] [0] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. ### end ### yes, it just a number. i just trying to count out how much char that actually arrived to my cellphone. this is my kannel.conf # Default kannel configuration file group = core admin-port = 13000 admin-password = playsms status-password = playsms admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1;192.168.*.*" #smsbox-port = 13001 #wapbox-port = 13002 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1;192.168.*.*" wdp-interface-name = "*" log-file = "/var/log/kannel/bearerbox.log" log-level = 0 access-log = "/var/log/kannel/access.log" smsbox-port = 13001 store-type = file store-location = "/var/log/kannel/kannel.store" sms-resend-retry = 4 #SMSC MODEM GSM group = smsc smsc = at connect-allow-ip = 127.0.0.1;192.168.*.* port = 13013 host = "localhost" smsc-id = wavecom modemtype = wavecom device = /dev/ttyUSB7 speed = 115200 alt-dcs = 1 log-file = "/var/log/kannel/smsc.log" log-level = 0 #sms-center = "+32486000005" #my-number = "+324XXXXXXXX" group = modems id = wavecom name = wavecom detect-string = "wavecom" init-string = "AT+CNMI=2,1,0,1,1;+CMEE=1" keepalive-cmd = "AT+CBC;+CSQ" #SMSBOX SETUP group = smsbox bearerbox-host = 127.0.0.1 bearerbox-port = 13001 sendsms-port = 13131 sendsms-chars = "0123456789+ " global-sender = 0811 log-file = "/var/log/kannel/smsbox.log" log-level = 0 access-log = "/var/log/kannel/access.log" #SEND-SMS USERS group = sendsms-user username = playsms password = playsms user-allow-ip = "*.*.*.*" split-chars = "#" #SMS SERVICE group = sms-service keyword = default accept-x-kannel-headers = true #accepted-smsc = Huawei #accepted-smsc = at2 max-messages = 0 assume-plain-text = true catch-all = true get-url = "http://localhost/PlaySMS/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a" ### end ### hope anyone can point out whats wrong :| regard,