[solved] Missing Some First Characters on incoming message in playsms inbox from kannel

So let me start off by saying what seems to be working:

Sending and receiving from what I can tell.

I am running into a problem:

Under my users inbox a message displays as:
$0113184309250337,7001,2016/08/12,16:45:46,312,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.9,9,0,0.0,16,31,895##

but when you look at the same message in the all inbox it reads as:

$$270113184309250337,7001,2016/08/12,16:45:46,312,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.9,9,0,0.0,16,31,895##

So it seems that part of the message is being cut off no idea why. What should be displayed is:
$$270113184309250337,7001,2016/08/12,16:45:46,312,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.9,9,0,0.0,16,31,895##

Observation: Previously I was getting weird symbols in place of the dollar sign I had to set this in kannel to make it stop doing that: alt-charset=“UTF-8”

Here is all my configurations below:

kannel.conf

# CONFIGURATION FOR USING SMS KANNEL WITH Sprint
#
# For any modifications to this file, see Kannel User Guide
# If that does not help, see Kannel web page (http://www.kannel.org) and
# various online help and mailing list archives

include = "/etc/kannel/modems.conf"

#---------------------------------------------
# CORE
#
# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'

group = core
admin-port = 13000
smsbox-port = 13001
#admin-port-ssl = true
smsbox-port-ssl = false
admin-password = fdsgsdfgsdfgdsfg
status-password = sdfgsdfgsdfgsdfg
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "localhost;127.0.0.1;xx.xx.xx.xx;xx.xx.xx.xx"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "*.*.*.*"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0

#---------------------------------------------
# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs

group = smsc
smsc = smpp
smsc-id = sprint
host = xx.xx.xx.xx
port = 9525
smsc-username = kjsdlkfj
smsc-password = asdfasd
keepalive = 600
transceiver-mode = true
system-type =
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
log-file = "/var/log/kannel/sprint.log"
log-level = 0
#esm-class = 0
alt-charset="UTF-8"

#---------------------------------------------
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox
bearerbox-host = 127.0.0.1
global-sender = xx.xx.xx.xx
sendsms-port = 13013
# sendsms-port-ssl was false
sendsms-port-ssl = false
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/smsbox-access.log"
reply-couldnotfetch = "Posting SMS message to POST_URL. (err=couldnotfetch)"
reply-requestfailed = "Failed to post SMS message to POST_URL. (err=requestfailed)"
reply-couldnotrepresent = "Your message could not be processed at this time.  Please try again later. (err=couldnotrepresent)"
http-request-retry = 5
http-queue-delay = 10
#mo-recode = true

# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...

# This is the username and password that users use to deliver SMSes to
# Kannel.  It must also set the 'smsc' variable in the query string, so that
# Kannel knows which SMSC to use to route the message.

group = sendsms-user
username = ksakfjaklsjdf
password = sdakljflkjasdlfkja
#user-deny-ip = "*.*.*.*"
user-allow-ip = "*.*.*.*"
#dlr-mask = 31

#---------------------------------------------
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service is
# applied, using the first one to match.

# The 'ping-kannel' service let's you check to see if Kannel is running,
# even if Sprint is offline for some reason.

group = sms-service
keyword = ping-kannel
text = "Kannel is online and responding to messages."

# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.  These relay incoming messages from any
# configured SMSCs to the appropriate HTTP backend URLs in Sprint.
# By setting 'accepted-smsc', we are assured that messages are routed to
# the appropriate backend in kannel.

group = sms-service
keyword = default
catch-all = yes
accepted-smsc = sprint
# don't send a reply here (it'll come through sendsms):
max-messages = 30
get-url = "http://52.XX.XX.XX/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i"

System Configuration Stuff:

admin@ip-xxx-xxx-xxx-xxx ~ $ locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

PHP.ini shows UTF8

I have playsms DB running in amazon on a separate RDS which is connected to playsms
MYSQL: show variables like ‘char%’;
result >
character_set_client: utf8
character_set_connection: utf8
character_set_database: utf8
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /rdsdbbin/mysql-5.6.19a.R1/share/charsets/

Sorry for the mega post, thanks.

can you edit your post and add some markdown, for example a code block for configs, or whatever that is not your own words (eg: configs, logs, codes…)

here is the markdown reference:
http://commonmark.org/help/

anton

Sorry about that, didn’t know this snazzy forum software allowed it, cool stuff. Thanks for the quick reply.

ok, can you reproduce the issue with one more test, and this time you need to log it.

run this:

tail -f /var/log/playsms/playsms.log -n0 | tee debug1.txt

and then do a single test, capture the log, screenshot the inbox and all inbox, that sms only if possible

before pasting the log here you need to sanitize it

anton

What I consider a sanitized log hope this is what you meant:

xx.xx.xx.xxx xx.xx.xx.xx 2016-08-12 18:39:33 PID57ae17e5397fd admin L2 sendsms # start uid:1 sender_id:[1234] smsc:[]
xx.xx.xx.xxx xx.xx.xx.xx 2016-08-12 18:39:33 PID57ae17e5397fd admin L2 sendsms_queue_create # saving queue_code:4a7a1bcc5e86244580004e1f1b2b5640 src:1234 scheduled:2016-08-12 18:39:33
xx.xx.xx.xxx xx.xx.xx.xx 2016-08-12 18:39:33 PID57ae17e5397fd admin L2 sendsms_queue_create # saved queue_code:4a7a1bcc5e86244580004e1f1b2b5640 id:89
xx.xx.xx.xxx xx.xx.xx.xx 2016-08-12 18:39:33 PID57ae17e5397fd admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
xx.xx.xx.xxx xx.xx.xx.xx 2016-08-12 18:39:33 PID57ae17e5397fd admin L2 sendsms_queue_push # saving queue_code:4a7a1bcc5e86244580004e1f1b2b5640 dst:5778932092
xx.xx.xx.xxx xx.xx.xx.xx 2016-08-12 18:39:33 PID57ae17e5397fd admin L2 sendsms_queue_push # saved queue_code:4a7a1bcc5e86244580004e1f1b2b5640 smslog_id:89
xx.xx.xx.xxx xx.xx.xx.xx 2016-08-12 18:39:33 PID57ae17e5397fd admin L2 sendsms # end queue_code:4a7a1bcc5e86244580004e1f1b2b5640 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 sendsmsd # start processing queue_code:4a7a1bcc5e86244580004e1f1b2b5640 chunk:0 queue_count:1 sms_count:1 scheduled:2016-08-12 18:39:33 uid$
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 sendsmsd # sending queue_code:4a7a1bcc5e86244580004e1f1b2b5640 smslog_id:89 to:5778932092 sms_count:1 counter:1
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 recvsms_process # using default SMSC smsc:[sprint]
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 sendsms_process # start
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:5778932092 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 sendsms # saving smslog_id:89 u:1 parent_uid:0 g:0 gw:kannel smsc:sprint s:1234 d:5778932092 type:text unicode:0 status:0
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 sendsms_process # saved smslog_id:89 id:89
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 simplerate_hook_rate_deduct # enter smslog_id:89
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 simplebilling_hook_billing_post # saving smslog_id:89 rate: count:1 charge:0
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 simplebilling_hook_billing_post # saved smslog_id:89 id:89
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 sendsms_process # end
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 sendsmsd # result queue_code:4a7a1bcc5e86244580004e1f1b2b5640 to:5778932092 flag:1 smslog_id:89
2016-08-12 18:39:33 PID57ae17e5a7870 - L2 sendsmsd # finish processing queue_code:4a7a1bcc5e86244580004e1f1b2b5640 uid:1 sender_id:1234 queue_count:1 sms_count:1
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 18:39:33 PID57ae17e5d16a1 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 18:39:33 PID57ae17e5d16a1 - L2 kannel__call # end load dlr
2016-08-12 18:39:34 PID57adfced53755 - L2 simplebilling__finalize # saving smslog_id:89
2016-08-12 18:39:34 PID57adfced53755 - L2 simplebilling__finalize # saved smslog_id:89
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 18:39:39 PID57ae17eb49bf9 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 18:39:39 PID57ae17eb49bf9 - L2 kannel__call # end load dlr
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 18:39:47 PID57ae17f2efa61 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/geturl.php
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 18:39:47 PID57ae17f2efa61 - L2 kannel__call # end load geturl
2016-08-12 18:39:47 PID57adfced5469a - L2 recvsms_inbox_add # saving sender:5778932092 receiver:xx.xx.xx.xxx target:admin reference_id:
2016-08-12 18:39:47 PID57adfced5469a - L2 recvsms_inbox_add # saved id:30 sender:5778932092 receiver:xx.xx.xx.xxx target:admin

Screenshots:

Inboxes

ok, pls set the logstate to 3 in config.php, not enough info in L2

relevant log would be while incoming SMS received (passed by kannel to playSMS), in L3 it will be shown more detail info.

this part will have more info on logstate 3

xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 18:39:47 PID57ae17f2efa61 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/geturl.php
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 18:39:47 PID57ae17f2efa61 - L2 kannel__call # end load geturl
2016-08-12 18:39:47 PID57adfced5469a - L2 recvsms_inbox_add # saving sender:5778932092 receiver:xx.xx.xx.xxx target:admin reference_id:
2016-08-12 18:39:47 PID57adfced5469a - L2 recvsms_inbox_add # saved id:30 sender:5778932092 receiver:xx.xx.xx.xxx target:admin

anton

See L3 logs below:

xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L2 sendsms # start uid:1 sender_id:[1234] smsc:[]
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L3 sendsms # maxlen:4590 footerlen:0 footer:[] msglen:10 message:[+XT:7001,2]
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L2 sendsms_queue_create # saving queue_code:392a09dd51431896d976475aa1fc7f3a src:1234 scheduled:2016-08-12 19:11:59
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L2 sendsms_queue_create # saved queue_code:392a09dd51431896d976475aa1fc7f3a id:91
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[5778932092]
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[5778932092]
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:5778932092 default_rate:0
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:10 unicode:0 to:5778932092 enable_credit_unicode:0 count:1 rate: charge:0
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L2 sendsms_queue_push # saving queue_code:392a09dd51431896d976475aa1fc7f3a dst:5778932092
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L2 sendsms_queue_push # saved queue_code:392a09dd51431896d976475aa1fc7f3a smslog_id:91
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:11:59 PID57ae1f7f56071 admin L2 sendsms # end queue_code:392a09dd51431896d976475aa1fc7f3a queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
2016-08-12 19:12:00 PID57ae1f805464b - L2 sendsmsd # start processing queue_code:392a09dd51431896d976475aa1fc7f3a chunk:0 queue_count:1 sms_count:1 scheduled:2016-08-12 19:11:59 uid:1 gpid:0 sender_id:1234
2016-08-12 19:12:00 PID57ae1f805464b - L2 sendsmsd # sending queue_code:392a09dd51431896d976475aa1fc7f3a smslog_id:91 to:5778932092 sms_count:1 counter:1
2016-08-12 19:12:00 PID57ae1f805464b - L3 sendsms_intercept # msgtemplate modified sms_sender:[1234] sms_footer:[] sms_to:[5778932092] sms_msg:[+XT:7001,2] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[392a09dd51431896d976475aa1fc7f3a] smsc:[]
2016-08-12 19:12:00 PID57ae1f805464b - L3 outgoing_hook_sendsms_intercept # no SMSC found uid:1 parent_uid:0 from:1234 to:5778932092
2016-08-12 19:12:00 PID57ae1f805464b - L2 recvsms_process # using default SMSC smsc:[sprint]
2016-08-12 19:12:00 PID57ae1f805464b - L2 sendsms_process # start
2016-08-12 19:12:00 PID57ae1f805464b - L3 simplerate_hook_rate_getbyprefix # rate not found to:5778932092 default_rate:0
2016-08-12 19:12:00 PID57ae1f805464b - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:10 unicode:0 to:5778932092 enable_credit_unicode:0 count:1 rate: charge:0
2016-08-12 19:12:00 PID57ae1f805464b - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:5778932092 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
2016-08-12 19:12:00 PID57ae1f805464b - L2 sendsms # saving smslog_id:91 u:1 parent_uid:0 g:0 gw:kannel smsc:sprint s:1234 d:5778932092 type:text unicode:0 status:0
2016-08-12 19:12:00 PID57ae1f805464b - L2 sendsms_process # saved smslog_id:91 id:91
2016-08-12 19:12:00 PID57ae1f805464b - L3 sendsms # final smslog_id:91 gw:kannel smsc:sprint message:+XT:7001,2 len:10
2016-08-12 19:12:00 PID57ae1f805464b - L3 kannel_hook_sendsms # enter smsc:sprint smslog_id:91 uid:1 to:5778932092
2016-08-12 19:12:00 PID57ae1f805464b - L3 kannel_hook_sendsms # URL: http://xx.xx.xx.xx:13013/cgi-bin/sendsms?username=admin&password=somepassword23948293085&from=1234&to=5778932092&dlr-mask=31&dlr-url=http%3A%2F%2Fxx.xx.xx.xx%2Fplaysms%2Findex.php%3Fapp%3Dcall%26cat%3Dgateway%26plugin%3Dkannel%26access%3Ddlr%26type%3D%25d%26smslog_id%3D91%26uid%3D1%26smsc%3Dsprint&account=admin&text=%2BXT%3A7001%2C2&smsc=smpp
2016-08-12 19:12:00 PID57ae1f805464b - L3 kannel__outgoing # smslog_id:91 response:0: Accepted for delivery
2016-08-12 19:12:00 PID57ae1f805464b - L3 dlr # isdlrd:1 smslog_id:91 p_status:0 uid:1
2016-08-12 19:12:00 PID57ae1f805464b - L3 kannel__outgoing # end smslog_id:91 p_status:0
2016-08-12 19:12:00 PID57ae1f805464b - L2 simplerate_hook_rate_deduct # enter smslog_id:91
2016-08-12 19:12:00 PID57ae1f805464b - L3 simplerate_hook_rate_getbyprefix # rate not found to:5778932092 default_rate:0
2016-08-12 19:12:00 PID57ae1f805464b - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:10 unicode:0 to:5778932092 enable_credit_unicode:0 count:1 rate: charge:0
2016-08-12 19:12:00 PID57ae1f805464b - L2 simplebilling_hook_billing_post # saving smslog_id:91 rate: count:1 charge:0
2016-08-12 19:12:00 PID57ae1f805464b - L2 simplebilling_hook_billing_post # saved smslog_id:91 id:91
2016-08-12 19:12:00 PID57ae1f805464b - L3 simplerate_hook_rate_deduct # deduct successful uid:1 parent_uid:0 smslog_id:91
2016-08-12 19:12:00 PID57ae1f805464b - L2 sendsms_process # end
2016-08-12 19:12:00 PID57ae1f805464b - L2 sendsmsd # result queue_code:392a09dd51431896d976475aa1fc7f3a to:5778932092 flag:1 smslog_id:91
2016-08-12 19:12:00 PID57ae1f805464b - L2 sendsmsd # finish processing queue_code:392a09dd51431896d976475aa1fc7f3a uid:1 sender_id:1234 queue_count:1 sms_count:1
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:00 PID57ae1f807e0cd - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:00 PID57ae1f807e0cd - L3 kannel__dlr # remote_addr:xx.xx.xx.xx remote_host:xx.xx.xx.xx type:[8] smslog_id:[91] uid:[1] smsc:[sprint]
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:00 PID57ae1f807e0cd - L3 dlr # isdlrd:1 smslog_id:91 p_status:1 uid:1
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:00 PID57ae1f807e0cd - L2 kannel__call # end load dlr
2016-08-12 19:12:01 PID57ae1f4f6e047 - L3 dlrd # id:192 smslog_id:91 p_status:0 uid:1
2016-08-12 19:12:01 PID57ae1f4f6e047 - L3 dlrd # id:193 smslog_id:91 p_status:1 uid:1
2016-08-12 19:12:01 PID57ae1f4f6e047 - L2 simplebilling__finalize # saving smslog_id:91
2016-08-12 19:12:01 PID57ae1f4f6e047 - L2 simplebilling__finalize # saved smslog_id:91
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:09 PID57ae1f89794c8 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:09 PID57ae1f89794c8 - L3 kannel__dlr # remote_addr:xx.xx.xx.xx remote_host:xx.xx.xx.xx type:[1] smslog_id:[91] uid:[1] smsc:[sprint]
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:09 PID57ae1f89794c8 - L3 dlr # isdlrd:1 smslog_id:91 p_status:3 uid:1
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:09 PID57ae1f89794c8 - L2 kannel__call # end load dlr
2016-08-12 19:12:09 PID57ae1f4f6e047 - L3 dlrd # id:194 smslog_id:91 p_status:3 uid:1
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:19 PID57ae1f938459a - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/geturl.php
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:19 PID57ae1f938459a - L3 kannel__incoming # remote_addr:xx.xx.xx.xx remote_host:xx.xx.xx.xx t:[2016-08-12 08:12:19] q:[5778932092] a:[$$270113184309250337,7001,2016/08/12,19:12:11,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879##] Q:[xx.xx.xx.xx] smsc:[sprint] smsc:[sprint]
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:19 PID57ae1f938459a - L3 recvsms # isrecvsmsd:1 dt:2016-08-12 08:12:19 sender:5778932092 m:$$270113184309250337,7001,2016/08/12,19:12:11,313,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879## receiver:xx.xx.xx.xx smsc:sprint
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:19 PID57ae1f938459a - L2 kannel__call # end load geturl
2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 recvsmsd # id:38 dt:2016-08-12 08:12:19 sender:5778932092 m:$$270113184309250337,7001,2016/08/12,19:12:11,313,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879## receiver:xx.xx.xx.xx smsc:sprint
2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 recvsms_process # dt:2016-08-12 08:12:19 sender:5778932092 m:$$270113184309250337,7001,2016/08/12,19:12:11,313,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879## receiver:xx.xx.xx.xx smsc:sprint
2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 recvsms_process # unhandled datetime:2016-08-12 08:12:19 sender:5778932092 receiver:xx.xx.xx.xx message:$$270113184309250337,7001,2016/08/12,19:12:11,313,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879##
2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 incoming__recvsms_intercept_after # sandbox to user start u:admin dt:2016-08-12 08:12:19 s:5778932092 r:xx.xx.xx.xx m:[$$270113184309250337,7001,2016/08/12,19:12:11,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879##]
2016-08-12 19:12:20 PID57ae1f4f6c77e - L2 recvsms_inbox_add # saving sender:5778932092 receiver:xx.xx.xx.xx target:admin reference_id:
2016-08-12 19:12:20 PID57ae1f4f6c77e - L2 recvsms_inbox_add # saved id:32 sender:5778932092 receiver:xx.xx.xx.xx target:admin
2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 incoming__recvsms_intercept_after # sandbox to user end u:admin

This part is the log for incoming SMS, above that part is outgoing SMS:

xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:19 PID57ae1f938459a - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/geturl.php
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:19 PID57ae1f938459a - L3 kannel__incoming # remote_addr:xx.xx.xx.xx remote_host:xx.xx.xx.xx t:[2016-08-12 08:12:19] q:[5778932092] a:[$$270113184309250337,7001,2016/08/12,19:12:11,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879##] Q:[xx.xx.xx.xx] smsc:[sprint] smsc:[sprint]
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:19 PID57ae1f938459a - L3 recvsms # isrecvsmsd:1 dt:2016-08-12 08:12:19 sender:5778932092 m:$$270113184309250337,7001,2016/08/12,19:12:11,313,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879## receiver:xx.xx.xx.xx smsc:sprint
xx.xx.xx.xx xx.xx.xx.xx 2016-08-12 19:12:19 PID57ae1f938459a - L2 kannel__call # end load geturl
2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 recvsmsd # id:38 dt:2016-08-12 08:12:19 sender:5778932092 m:$$270113184309250337,7001,2016/08/12,19:12:11,313,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879## receiver:xx.xx.xx.xx smsc:sprint
2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 recvsms_process # dt:2016-08-12 08:12:19 sender:5778932092 m:$$270113184309250337,7001,2016/08/12,19:12:11,313,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879## receiver:xx.xx.xx.xx smsc:sprint
2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 recvsms_process # unhandled datetime:2016-08-12 08:12:19 sender:5778932092 receiver:xx.xx.xx.xx message:$$270113184309250337,7001,2016/08/12,19:12:11,313,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879##
2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 incoming__recvsms_intercept_after # sandbox to user start u:admin dt:2016-08-12 08:12:19 s:5778932092 r:xx.xx.xx.xx m:[$$270113184309250337,7001,2016/08/12,19:12:11,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879##]
2016-08-12 19:12:20 PID57ae1f4f6c77e - L2 recvsms_inbox_add # saving sender:5778932092 receiver:xx.xx.xx.xx target:admin reference_id:
2016-08-12 19:12:20 PID57ae1f4f6c77e - L2 recvsms_inbox_add # saved id:32 sender:5778932092 receiver:xx.xx.xx.xx target:admin
2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 incoming__recvsms_intercept_after # sandbox to user end u:admin

looking at it I can see that the message received by playSMS and processed is:

2016-08-12 19:12:20 PID57ae1f4f6c77e - L3 incoming__recvsms_intercept_after # sandbox to user start u:admin dt:2016-08-12 08:12:19 s:5778932092 r:xx.xx.xx.xx m:[$$270113184309250337,7001,2016/08/12,19:12:11,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879##]

this is the message:

$$270113184309250337,7001,2016/08/12,19:12:11,0.0,0.0,0.0,0,0,12,0.7,1,0,51,0.0,12.8,9,0,0.0,20,23,879##

and then you saw in your Inbox some part at the beginning was removed, this part was removed: $$270
but in All inbox it was not.

Is that the issue ?
which playSMS version do you use ?

anton

I can confirm that this is a bug, I can reproduce it through Settings -> Simulate incoming SMS menu

this is the culprit:

anton

Good to know this is a bug,

Yes and 1.4 PlaySMS

So how should I patch this regular expression to work?

Thanks

I havent fixed it, Ill fix this soon

bug has been filed: https://github.com/antonraharja/playSMS/issues/531

Anton

Looks like you got this fixed, Thanks for fixing it. Looks like its working great.