[solved] Playsms 1.3 does not send SMS

When I send an SMS I get this message: "Your message has been delivered to queue (queued:1 failed:0)"
However, nothing appears in the sms outgoing report.

Concerning the sent SMS, in the Log I have this :
[…]admin L2 sendsms # start uid:1 sender_id:[kognon] smsc:[]
[…] admin L2 sendsms_queue_create # saving queue_code:ef14682c7c2ae6308f6759f3b3789dc5 src:kognon scheduled:2015-09-08 17:41:48
[…] admin L2 sendsms_queue_create # saved queue_code:ef14682c7c2ae6308f6759f3b3789dc5 id:23
[…] admin L2 sendsms # dst:1 sms_count:1 total_charges:30
[…] admin L2 sendsms_queue_push # saving queue_code:ef14682c7c2ae6308f6759f3b3789dc5 dst:22508655180
[…] admin L2 sendsms_queue_push # saved queue_code:ef14682c7c2ae6308f6759f3b3789dc5 smslog_id:23
[…] admin L2 sendsms # end queue_code:ef14682c7c2ae6308f6759f3b3789dc5 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

Please help !

Need more details.
Have you configured “Route outgoing SMS”?
What kind of gateway?
Is it clear install or upgrade from previous version?

Thank you for your quick response.

  1. yes Route outgoing SMS is configured
  2. Gateway: Kannel
  3. I have installed the version 1.3 and it is clear installed

thank you

Check whether you can send sms only via Kannel (for example “http://SMS_BOX_IP:SEND_SMS_PORT/cgi-bin/sendsms?user=USER&password=PASSWORD&to=NUMBER”)
If you didn’t define “default-sender =” parameter in the section “group = sendsms-user” in your kannel.conf you should define it or add “from=something” to http request.

Hi Viktor,
I can send SMS via Kannel. It works fine!

Ok. Than check “playsmsd status” or “playsmsd check” – there must be something like
"playsmsd is running
schedule at pid 13556
dlrssmsd at pid 13558
recvsmsd at pid 13560
sendsmsd at pid 13562"
Then show more info from playsms’s and kannel’s log files (e.g. kannel.log or bearerbox.log and smsbox.log). Don’t forget to set “log-level = 0” in Kannel.conf and restart bearerbox and smsbox after that.

Hi

Try to do these steps:
https://github.com/antonraharja/book-playsms/blob/master/book-contents/en/Installation/playSMS-Installation/Additional-step-for-playSMS-1.3-installation.md

Anton

Yessssss ! It’s working fine!
Thank you very much Anton.

I have the same problem. I performed a new install over the existing one, and tried to configure all settings again.
I have tried to perform a new install with the latest version from gitHub, I noticed that when looking at Reports->View log, playSMS daemon status is red. But the service is running:
playsmsd is running
schedule at pid 28482
dlrssmsd at pid 28484
recvsmsd at pid 28486
sendsmsd at pid 28490

When I try to send I get a message popup:
Your message has been delivered to queue (queued:1 failed:0)

this is logged in playsms.log:

192.168.102.227 nagios3 2015-09-09 09:00:49 PID55efd9218a18f admin L2 sendsms # start uid:1 sender_id:[1234] smsc:[]
192.168.102.227 nagios3 2015-09-09 09:00:49 PID55efd9218a18f admin L2 sendsms_queue_create # saving queue_code:10628337d93363c4dbec6836b82f88e9 src:1234 scheduled:2015-09-09 09:00:49
192.168.102.227 nagios3 2015-09-09 09:00:49 PID55efd9218a18f admin L2 sendsms_queue_create # saved queue_code:10628337d93363c4dbec6836b82f88e9 id:3
192.168.102.227 nagios3 2015-09-09 09:00:49 PID55efd9218a18f admin L2 sendsms # dst:1 sms_count:1 total_charges:0
192.168.102.227 nagios3 2015-09-09 09:00:49 PID55efd9218a18f admin L2 sendsms_queue_push # saving queue_code:10628337d93363c4dbec6836b82f88e9 dst:+4540378820
192.168.102.227 nagios3 2015-09-09 09:00:49 PID55efd9218a18f admin L2 sendsms_queue_push # saved queue_code:10628337d93363c4dbec6836b82f88e9 smslog_id:3
192.168.102.227 nagios3 2015-09-09 09:00:49 PID55efd9218a18f admin L2 sendsms # end queue_code:10628337d93363c4dbec6836b82f88e9 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

Nothing is logged in any kannel logs.

Another thing is that when configuring the gateway and SMSC there seems to be duplicate entries?
I have linked to screenshots of my config.
https://drive.google.com/file/d/0By1eUZsXypqjeHFjd01rcFg1LXc/view?usp=sharing
https://drive.google.com/file/d/0By1eUZsXypqjdmFrT3hic1NaRFU/view?usp=sharing

Regards

Jens

Have you tried the additional step I’ve posted above ?

Anton

I tried to reinstall using the current gitHub version, so I assumed that fix was in there.
I just tried applying the sql file and get Duplicate column name ‘chunk’, so that fix should already be applied.?

regards

Jens

Ok. Just found my problem.

When I launch playsms via sudo service playsms start it does not work, but if i run sudo playsmsd start it does.
The strange thing is that the output from both is identical:

service playsms start:
playsmsd has been started
schedule at pid 26849
dlrssmsd at pid 26851
recvsmsd at pid 26853
sendsmsd at pid 26855

playsmsd start:
playsmsd has been started
schedule at pid 27533
dlrssmsd at pid 27535
recvsmsd at pid 27537
sendsmsd at pid 27540

If I run the playsmsd start command, both the service playsms status and playsmsd status returns:
playsmsd is running
But if launched with service playsms start only service playsms status returns status running.

regards

Jens

I just found the answer to that problem also.
I had not updated my install.conf file to include the pathconf variable. So the install placed the playsmsd.conf in / and not in /etc/
when launched via service playsms it used the /etc/playsmsd.conf and and with playsmsd it used /playsmsd.conf

It appears to be working now.

Regards

Jens

I have the same problem dropped table playsms_tblSMSOutgoing_queue_dst and recreated just sits there and the log shows nothing untoward.
41.182.92.101 portal.it.na 2015-09-09 11:54:16 PID55f001c770d3c admin L2 sendsms # end queue_code:899a4ddd5ac023b25c2aadfd3423110b queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

And the message remain in the queue.

id | queue_id | chunk | smslog_id | flag | dst |
±—±---------±------±----------±-----±-------------+
| 1 | 6544 | 0 | 0 | 0 | 264811243769 |
| 2 | 6545 | 0 | 0 | 0 | 264811243769 |
| 3 | 6546 | 0 | 0 | 0 | 264811243769 |
| 4 | 6547 | 0 | 0 | 0 | 264811243769 |
±—±---------±------±----------±-----±-------------+

Make sure to run playsmsd by including playsmsd.conf:

ˋˋˋ
playsmsd <playsmsd.conf path>
ˋˋˋ

Example:

ˋˋˋ
playsmsd /etc/playsmsd.conf check
ˋˋˋ

Make sure you didn’t run into same issue like @Hyllegaard above

Anton

2 Likes

Hi Anton!
The 2 bugs have been fixed: I can send SMS and receive it on my handset, however even the SMS is received, the status in outgoing report is always “0” yellow color. If I change a Gateway for example InfoBip, I get the wright status.
Is there again a bug or is it a miss configuration in my kannel ?

Thank you

paste the log here

anton

Here is the Log:
2015-09-09 13:14:50 PID55f030ca801f8 - L2 sendsmsd # start processing queue_code:2f45b7befcbf8e612a33b17737ecfadc chunk:0 queue_count:1 sms_count:1 scheduled:2015-09-09 13:14:49 uid:1 gpid:0 sender_id:ipwav-sms

    • 2015-09-09 13:14:50 PID55f030ca801f8 - L2 sendsmsd # sending queue_code:2f45b7befcbf8e612a33b17737ecfadc smslog_id:33 to:22508655180 sms_count:1 counter:1
    • 2015-09-09 13:14:50 PID55f030ca801f8 - L2 sendsms_process # start
    • 2015-09-09 13:14:50 PID55f030ca801f8 - L2 simplerate__cansend # allowed user uid:1 sms_to:22508655180 credit:11070.000 count:1 rate:30.000 charge:30 balance:11040
    • 2015-09-09 13:14:50 PID55f030ca801f8 - L2 sendsms # saving smslog_id:33 u:1 g:0 gw:kannel smsc:infobip s:ipwav-sms d:22508655180 type:text unicode:0 status:0
    • 2015-09-09 13:14:50 PID55f030ca801f8 - L2 sendsms_process # saved smslog_id:33 id:33
    • 2015-09-09 13:14:50 PID55f030ca801f8 - L2 simplerate__deduct # enter smslog_id:33
    • 2015-09-09 13:14:51 PID55f030ca801f8 - L2 credit_hook_rate_setusercredit # saving uid:1 balance:11040
    • 2015-09-09 13:14:51 PID55f030ca801f8 - L2 credit_hook_rate_setusercredit # saved uid:1 balance:11040
    • 2015-09-09 13:14:51 PID55f030ca801f8 - L2 simplerate__deduct # user uid:1 parent_uid: smslog_id:33 msglen:45 count:1 rate:30.000 charge:30 credit:11070.000 balance:11040
    • 2015-09-09 13:14:51 PID55f030ca801f8 - L2 simplebilling__post # saving smslog_id:33 rate:30.000 credit:11070.000 count:1 charge:30
    • 2015-09-09 13:14:51 PID55f030ca801f8 - L2 simplebilling__post # saved smslog_id:33 id:33
    • 2015-09-09 13:14:51 PID55f030ca801f8 - L2 sendsms_process # end
    • 2015-09-09 13:14:51 PID55f030ca801f8 - L2 sendsmsd # result queue_code:2f45b7befcbf8e612a33b17737ecfadc to:22508655180 flag:1 smslog_id:33
    • 2015-09-09 13:14:51 PID55f030ca801f8 - L2 sendsmsd # finish processing queue_code:2f45b7befcbf8e612a33b17737ecfadc uid:1 sender_id:ipwav-sms queue_count:1 sms_count:1

pls enable loglevel 3 in config.php, dont forget to restart playsmsd, and then test again and paste again

make sure that you have read the log and sanitize all private information such as numbers or passwords

anton

Hi Anton, here is the Log output with level 3:

[…] PID55f05291b9508 admin L2 sendsms # start uid:1 sender_id:[sendername] smsc:[]
[…] PID55f05291b9508 admin L3 sendsms # maxlen:1071 footerlen:7 footer:[ @admin] msglen:38 message:[Test reussi sur la nouvelle plateforme]
[…] PID55f05291b9508 admin L2 sendsms_queue_create # saving queue_code:fe1039aaf7fd6660e2b8677cca973fa9 src:sendername scheduled:2015-09-09 15:38:58
[…] PID55f05291b9508 admin L2 sendsms_queue_create # saved queue_code:fe1039aaf7fd6660e2b8677cca973fa9 id:33
[…] PID55f05291b9508 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[xxxxxxxx]
[…] PID55f05291b9508 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[xxxxxxxxxxx]
[…] PID55f05291b9508 admin L3 simplerate_hook_rate_getbyprefix # found rate id:2 prefix:22508 rate:30.000 description:Orange CI to:xxxxxxxxxxx
[…] PID55f05291b9508 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:45 unicode:0 to:xxxxxxxxxxx enable_credit_unicode:0 count:1 rate:30.000 charge:30
[…] PID55f05291b9508 admin L2 sendsms # dst:1 sms_count:1 total_charges:30
[…] PID55f05291b9508 admin L2 sendsms_queue_push # saving queue_code:fe1039aaf7fd6660e2b8677cca973fa9 dst:xxxxxxxxxxx
[…] PID55f05291b9508 admin L2 sendsms_queue_push # saved queue_code:fe1039aaf7fd6660e2b8677cca973fa9 smslog_id:34
[…] PID55f05291b9508 admin L2 sendsms # end queue_code:fe1039aaf7fd6660e2b8677cca973fa9 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
[…] PID55f05293e00a4 - L2 sendsmsd # start processing queue_code:fe1039aaf7fd6660e2b8677cca973fa9 chunk:0 queue_count:1 sms_count:1 scheduled:2015-09-09 15:38:58 uid:1 gpid:0 sender_id:sendername
[…] PID55f05293e00a4 - L2 sendsmsd # sending queue_code:fe1039aaf7fd6660e2b8677cca973fa9 smslog_id:34 to:xxxxxxxxxxx sms_count:1 counter:1
[…] PID55f05293e00a4 - L3 sendsms_intercept # msgtemplate modified sms_sender:[sendername] sms_footer:[@admin] sms_to:[xxxxxxxxxxx] sms_msg:[Test reussi sur la nouvelle plateforme] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[fe1039aaf7fd6660e2b8677cca973fa9] smsc:[]
[…] PID55f05293e00a4 - L3 outgoing_hook_sendsms_intercept # found SMSCs:[infobip]
[…] PID55f05293e00a4 - L3 outgoing_hook_sendsms_intercept # using prefix based smsc smsc:[infobip] uid:1 parent_uid:0 from:sendername to:xxxxxxxxxxx
[…] PID55f05293e00a4 - L3 sendsms_intercept # outgoing modified sms_sender:[sendername] sms_footer:[@admin] sms_to:[22508655180] sms_msg:[Test reussi sur la nouvelle plateforme] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[fe1039aaf7fd6660e2b8677cca973fa9] smsc:[infobip]
[…] PID55f05293e00a4 - L2 sendsms_process # start
[…] PID55f05293e00a4 - L3 simplerate_hook_rate_getbyprefix # found rate id:2 prefix:22508 rate:30.000 description:Orange CI to:xxxxxxxxxxx
[…] PID55f05293e00a4 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:45 unicode:0 to:xxxxxxxxxxx enable_credit_unicode:0 count:1 rate:30.000 charge:30
[…] PID55f05293e00a4 - L2 simplerate__cansend # allowed user uid:1 sms_to:xxxxxxxxxxx credit:11040.000 count:1 rate:30.000 charge:30 balance:11010
[…] PID55f05293e00a4 - L2 sendsms # saving smslog_id:34 u:1 g:0 gw:kannel smsc:infobip s:ipwav-sms d:xxxxxxxxxxx type:text unicode:0 status:0
[…] PID55f05293e00a4 - L2 sendsms_process # saved smslog_id:34 id:34
[…] PID55f05293e00a4 - L3 sendsms # final smslog_id:34 gw:kannel smsc:infobip message:Test reussi sur la nouvelle plateforme @admin len:45
[…] PID55f05293e00a4 - L3 kannel_hook_sendsms # enter smsc:infobip smslog_id:34 uid:1 to:xxxxxxxxxxx
[…] PID55f05293e00a4 - L3 kannel_hook_sendsms # URL: http://my_IP:13317/cgi-bin/sendsms?username=playsms&password=playsms&from=sendername&to=xxxxxxxxxxx&dlr-mask=&dlr-url=http%3A%2F%2Fdemo.mydomain.com%2Fipsms%2Findex.php%3Fapp%3Dcall%26cat%3Dgateway%26plugin%3Dkannel%26access%3Ddlr%26type%3D%25d%26smslog_id%3D34%26uid%3D1%26smsc%3Dinfobip&account=admin&text=Test+reussi+sur+la+nouvelle+plateforme+%40admin&smsc=infobip
[…] PID55f05293e00a4 - L3 kannel__outgoing # smslog_id:34 response:0: Accepted for delivery
[…] PID55f05293e00a4 - L3 dlr # isdlrd:1 smslog_id:34 p_status:0 uid:1
[…] PID55f05293e00a4 - L3 kannel__outgoing # end smslog_id:34 p_status:0
[…] PID55f05293e00a4 - L2 simplerate__deduct # enter smslog_id:34
[…] PID55f0526920e8f - L3 dlrd # id:34 smslog_id:34 p_status:0 uid:1
[…] PID55f05293e00a4 - L3 simplerate_hook_rate_getbyprefix # found rate id:2 prefix:22508 rate:30.000 description:Orange CI to:xxxxxxxxxxx
[…] PID55f05293e00a4 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:45 unicode:0 to:xxxxxxxxxxx enable_credit_unicode:0 count:1 rate:30.000 charge:30
[…] PID55f05293e00a4 - L2 credit_hook_rate_setusercredit # saving uid:1 balance:11010
[…] PID55f05293e00a4 - L2 credit_hook_rate_setusercredit # saved uid:1 balance:11010
[…] PID55f05293e00a4 - L2 simplerate__deduct # user uid:1 parent_uid: smslog_id:34 msglen:45 count:1 rate:30.000 charge:30 credit:11040.000 balance:11010
[…] PID55f05293e00a4 - L2 simplebilling__post # saving smslog_id:34 rate:30.000 credit:11040.000 count:1 charge:30
[…] PID55f05293e00a4 - L2 simplebilling__post # saved smslog_id:34 id:34
[…] PID55f05293e00a4 - L3 simplerate__deduct # deduct successful uid:1 parent_uid: smslog_id:34
[…] PID55f05293e00a4 - L3 simplerate__deduct # credit_lowest_limit:500 balance:11010 charge:30
[…] PID55f05293e00a4 - L2 sendsms_process # end
[…] PID55f05293e00a4 - L2 sendsmsd # result queue_code:fe1039aaf7fd6660e2b8677cca973fa9 to:xxxxxxxxxxx flag:1 smslog_id:34
[…] PID55f05293e00a4 - L2 sendsmsd # finish processing queue_code:fe1039aaf7fd6660e2b8677cca973fa9 uid:1 sender_id:sendername queue_count:1 sms_count:1