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.
anton
June 16, 2015, 8:30am
2
usually different bearerbox host between kannel and playSMS
what domain is in your service get url ? (eg: http://localhost/playsms … means its localhost)
anton
anton
June 16, 2015, 8:31am
3
best to know whats going on is by setting debug:
edit config.php and set logstate to 3
restart playsmsd: playsmsd restart
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
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
anton
June 16, 2015, 10:25am
9
try this one:
Messages are not delivered, they are queued. Admin saw all messages in View SMS queue. Usually, before 0.9.9.2, this is the case of daemon scripts issue, they are not running or running improperly …
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.
anton
June 16, 2015, 11:25am
11
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.