[solved] Message not received in playsms

hi,

I successfully install kannel and playsms in ubuntu with Huawei E1552 as my modem.
I can send messages via playsms and kannel but cannot receive messages.
When i check the kannel status, there is a SMS received but on the playsms portal, there is none.

Thanks in advanced.

usually different bearerbox host between kannel and playSMS

what domain is in your service get url ? (eg: http://localhost/playsms … means its localhost)

anton

best to know whats going on is by setting debug:

  1. edit config.php and set logstate to 3
  2. restart playsmsd: playsmsd restart
  3. monitor playsms log: tail -f /var/log/playsms/playsms.log | tee test1.log

try to receive 1 SMS and watch the log, paste the test1.log here if you still dont understand

remember just 1 test SMS (from mobile to kannel/playsms)

anton

im using this.

http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i

here is the log:

2015-06-16 17:08:36 PID557fe7297cd0d - L3 recvsmsd # id:12 dt:2015-06-16 09:07:18 sender:+63917xxxxxxx m:Tesy receiver:13013 smsc:Huawei

    • 2015-06-16 17:08:36 PID557fe7297cd0d - L3 setsmsincomingaction # dt:2015-06-16 09:07:18 sender:+63917xxxxxxx m:Tesy receiver:13013 smsc:Huawei
    • 2015-06-16 17:08:36 PID557fe7297cd0d - L3 setsmsincomingaction # unhandled datetime:2015-06-16 09:07:18 sender:+63917xxxxxxx receiver:13013 message:Tesy

upon checking,
it is on the SANDBOX.

Thanks Anton for the help.
Great program.

last question.
I’m getting wrong time on received messages.
I already set it to +0800

thanks in advance

try this one:

basically it is to set your timezone in php.ini to match your playSMS main config timezone setting (or vice versa)

i already changed the settings in php.ini and restart the server.

Im still getting a wrong time.

go to Settings -> Manage gateway and SMSC -> Kannel
and then look for option Incoming SMS time is in local time, by default its a No, try to set it to Yes

It works in reverse.
My original settings was set to YES
then i changed it to NO and now the time is correct.

Thanks again for the help.