playSMS Forum

[solved] Your message has been delivered to queue (queued:1 failed:0)

Unable to Send Sms .Using twilio Api Account SID and Auth.

get the log, sanitize it and paste here please

anton

playsmsd log:
Last Half Log:

2016-07-25 19:58:56 PID57966f8017214 admin L2 sendsms_queue_create # saving queue_code:9502c728faac2adcdf62769cc0d4f90f src:+xxx scheduled:2016-07-25 19:58:56
2016-07-25 19:58:56 PID57966f8017214 admin L2 sendsms_queue_create # saved queue_code:9502c728faac2adcdf62769cc0d4f90f id:43
2016-07-25 19:58:56 PID57966f8017214 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
2016-07-25 19:58:56 PID57966f8017214 admin L2 sendsms_queue_push # saving queue_code:9502c728faac2adcdf62769cc0d4f90f dst:+91xxxxxx
2016-07-25 19:58:56 PID57966f8017214 admin L2 sendsms_queue_push # saved queue_code:9502c728faac2adcdf62769cc0d4f90f smslog_id:46
2016-07-25 19:58:56 PID57966f8017214 admin L2 sendsms # end queue_code:9502c728faac2adcdf62769cc0d4f90f queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
2016-07-25 20:16:28 PID5796739c5168e admin L2 sendsms # start uid:1 sender_id:[+] smsc:[]
2016-07-25 20:16:28 PID5796739c5168e admin L2 sendsms_queue_create # saving queue_code:3c0880d6982db8c87302f6944fbf906e src:+xxx scheduled:2016-07-25 20:16:28
2016-07-25 20:16:28 PID5796739c5168e admin L2 sendsms_queue_create # saved queue_code:3c0880d6982db8c87302f6944fbf906e id:44
2016-07-25 20:16:28 PID5796739c5168e admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
2016-07-25 20:16:28 PID5796739c5168e admin L2 sendsms_queue_push # saving queue_code:3c0880d6982db8c87302f6944fbf906e dst:+91xxxxxx
2016-07-25 20:16:28 PID5796739c5168e admin L2 sendsms_queue_push # saved queue_code:3c0880d6982db8c87302f6944fbf906e smslog_id:47
2016-07-25 20:16:28 PID5796739c5168e admin L2 sendsms # end queue_code:3c0880d6982db8c87302f6944fbf906e queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
2016-07-26 12:41:43 PID57975a87a8fa8 - L2 auth_validate_login # valid login u:admin uid:1 ip:xx.xx.xx.xx
2016-07-26 12:41:43 PID57975a87a8fa8 - L2 login # u:admin uid:1 status:2 sid:umjoahbehp1a9ms01mu01k4390 ip:xx.xx.xx.xx
2016-07-26 12:50:32 PID57975c9807e3d admin L2 sendsms # start uid:1 sender_id:[+] smsc:[]
2016-07-26 12:50:32 PID57975c9807e3d admin L2 sendsms_queue_create # saving queue_code:5a9bfe592dc638e8b4a6d1c154bec0bc src:+xxx scheduled:2016-07-26 12:50:32
2016-07-26 12:50:32 PID57975c9807e3d admin L2 sendsms_queue_create # saved queue_code:5a9bfe592dc638e8b4a6d1c154bec0bc id:45
2016-07-26 12:50:32 PID57975c9807e3d admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
2016-07-26 12:50:32 PID57975c9807e3d admin L2 sendsms_queue_push # saving queue_code:5a9bfe592dc638e8b4a6d1c154bec0bc dst:+91xxxxxx
2016-07-26 12:50:32 PID57975c9807e3d admin L2 sendsms_queue_push # saved queue_code:5a9bfe592dc638e8b4a6d1c154bec0bc smslog_id:48
2016-07-26 12:50:32 PID57975c9807e3d admin L2 sendsms # end queue_code:5a9bfe592dc638e8b4a6d1c154bec0bc queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
2016-07-26 13:00:38 PID57975ef66bc9f admin L2 sendsms # start uid:1 sender_id:[+] smsc:[]
2016-07-26 13:00:38 PID57975ef66bc9f admin L2 sendsms_queue_create # saving queue_code:bbf2f55125b86426c4be31e86a848d7f src:+xxx scheduled:2016-07-26 13:00:38
2016-07-26 13:00:38 PID57975ef66bc9f admin L2 sendsms_queue_create # saved queue_code:bbf2f55125b86426c4be31e86a848d7f id:46
2016-07-26 13:00:38 PID57975ef66bc9f admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
2016-07-26 13:00:38 PID57975ef66bc9f admin L2 sendsms_queue_push # saving queue_code:bbf2f55125b86426c4be31e86a848d7f dst:+91xxxxxx
2016-07-26 13:00:38 PID57975ef66bc9f admin L2 sendsms_queue_push # saved queue_code:bbf2f55125b86426c4be31e86a848d7f smslog_id:49
2016-07-26 13:00:38 PID57975ef66bc9f admin L2 sendsms # end queue_code:bbf2f55125b86426c4be31e86a848d7f queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

Hi,

It seems playsmsd was not running, check it by running:

playsmsd check

sample output when playsmsd is not running, no PIDS, IS_RUNNING is empty:

PLAYSMSD_CONF = /etc/playsmsd.conf
PLAYSMS_PATH = /var/www/html/playsms
PLAYSMS_LIB = /var/lib/playsms
PLAYSMS_BIN = /usr/local/bin
PLAYSMS_LOG = /var/log/playsms
DAEMON_SLEEP = 1
ERROR_REPORTING = E_ALL ^ (E_NOTICE | E_WARNING)
IS_RUNNING = 
PIDS schedule = 
PIDS ratesmsd = 
PIDS dlrssmsd = 
PIDS recvsmsd = 
PIDS sendsmsd = 

anton

Yes , Same. how to resolve this issue.

service started -
command - playsmsd start
But still Sms Queue- Failed With Red Dot.


PLAYSMSD_CONF = /etc/playsmsd.conf
PLAYSMS_PATH = /var/www/html/playsms
PLAYSMS_LIB = /var/lib/playsms
PLAYSMS_BIN = /usr/local/bin
PLAYSMS_LOG = /var/log/playsms
DAEMON_SLEEP = 1
ERROR_REPORTING = E_ALL ^ (E_NOTICE | E_WARNING)
IS_RUNNING = 1
PIDS schedule = 12759
PIDS ratesmsd = 12761
PIDS dlrssmsd = 12763
PIDS recvsmsd = 12765
PIDS sendsmsd = 12767

Dear Anton,

New Playsms Half Log-


    • 2016-07-27 07:27:02 PID5798624682406 - L2 sendsmsd # start processing queue_code:de71fa88286afaf556ed3f0e3e348ab4 chunk:0 queue_count:1 sms_count:1 scheduled:2016-07-27 07:27:01 uid:1 gpid:0 sender_id:1234
    • 2016-07-27 07:27:02 PID5798624682406 - L2 sendsmsd # sending queue_code:de71fa88286afaf556ed3f0e3e348ab4 smslog_id:54 to:xxxxxx sms_count:1 counter:1
    • 2016-07-27 07:27:02 PID5798624682406 - L2 recvsms_process # using default SMSC smsc:[twilio]
    • 2016-07-27 07:27:02 PID5798624682406 - L2 sendsms_process # start
    • 2016-07-27 07:27:02 PID5798624682406 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:xxxxxxx adhoc_credit:100100 count:1 rate: charge:0 adhoc_balance:100100
    • 2016-07-27 07:27:02 PID5798624682406 - L2 sendsms # saving smslog_id:54 u:1 parent_uid:0 g:0 gw:twilio smsc:twilio s:1234 d:xxxxxxx type:text unicode:0 status:0
    • 2016-07-27 07:27:02 PID5798624682406 - L2 sendsms_process # saved smslog_id:54 id:31
    • 2016-07-27 07:27:03 PID5798624682406 - L2 sendsms_process # fail no hook for sendsms
    • 2016-07-27 07:27:03 PID5798624682406 - L2 sendsms_process # end
    • 2016-07-27 07:27:03 PID5798624682406 - L2 sendsmsd # result queue_code:de71fa88286afaf556ed3f0e3e348ab4 to:9799660441 flag:2 smslog_id:54
    • 2016-07-27 07:27:03 PID5798624682406 - L2 sendsmsd # finish processing queue_code:de71fa88286afaf556ed3f0e3e348ab4 uid:1 sender_id:1234 queue_count:1 sms_count:1

Issue Resolved. Thanks.

My server is runing but not send sms by Playsms

root@deb-playsms:/usr/local/src/playsms# /usr/local/bin/playsmsd start
playsmsd is already running
schedule at pid 6254
ratesmsd at pid 6256
dlrssmsd at pid 6258
recvsmsd at pid 6260
sendsmsd at pid 6262
root@deb-playsms:/usr/local/src/playsms#

root@deb-playsms:/usr/local/src/playsms# gammu -f /var/log/gammulog identify
Dispositivo : /dev/ttyUSB1
Fabricante : Huawei
Modelo : E160X (E160X)
Firmware : 11.604.21.05.314
IMEI : 353762032078915
SIM IMSI : 631040025831074
root@deb-playsms:/usr/local/src/playsms#

root@deb-playsms:/usr/local/src/playsms# /usr/local/bin/playsmsd stop
schedule at pid 6254 will be killed…
ratesmsd at pid 6256 will be killed…
dlrssmsd at pid 6258 will be killed…
recvsmsd at pid 6260 will be killed…
sendsmsd at pid 6262 will be killed…
playsmsd has been stopped
root@deb-playsms:/usr/local/src/playsms# /usr/local/bin/playsmsd start
playsmsd has been started
schedule at pid 18413
ratesmsd at pid 18415
dlrssmsd at pid 18417
recvsmsd at pid 18419
sendsmsd at pid 18421
root@deb-playsms:/usr/local/src/playsms#