Not able to send sms via playsms

hi
i use playsms and kannel ,
i can receive sms but i cannot send sms .
when i try to send a sms i got :

  1. 0: Accepted for delivery in the browser

  2. tail -f /var/log/kannel/smsbox.log
    sudo tail -f /var/log/kannel/smsbox.log
    2015-07-20 15:20:12 [2711] [3] INFO: smsbox: Got HTTP request from <127…>
    2015-07-20 15:20:12 [2711] [3] INFO: sendsms used by
    2015-07-20 15:20:12 [2711] [3] INFO: sendsms sender:
    > (127…) to:<2*****> msg:
    2015-07-20 15:20:12 [2711] [3] DEBUG: Stored UUID f5a87ab8-bd95-413b-a9a6-eb37e9b454da
    2015-07-20 15:20:12 [2711] [3] DEBUG: message length 14, sending 1 messages
    2015-07-20 15:20:12 [2711] [3] DEBUG: Status: 202 Answer:
    2015-07-20 15:20:12 [2711] [3] DEBUG: Delayed reply - wait for bearerbox
    2015-07-20 15:20:12 [2711] [0] DEBUG: Got ACK (0) of f5a87ab8-bd95-413b-a9a6-eb37e9b454da
    2015-07-20 15:20:12 [2711] [0] DEBUG: HTTP: Destroying HTTPClient area 0x7f827c000a90.
    2015-07-20 15:20:12 [2711] [0] DEBUG: HTTP: Destroying HTTPClient for 127...)’.
    2015-07-20 15:31:13 [2711] [2] DEBUG: HTTP: Creating HTTPClient for127…
    )’.
    2015-07-20 15:31:13 [2711] [2] DEBUG: HTTP: Created HTTPClient area 0x7f827c000a90.

  3. in playsms the sms is pending and not sent

have you any idea what is my problem ???

Hi. You should look for errors in “kannel.log” or “bearerbox.log” (eg /var/log/kannel/kannel.log). Use “log-level = 0” in kannel.conf.

Yep! got the same problem, any ideas?
my kannel.log:

2015-09-06 11:59:55 [31888] [8] DEBUG: boxc_receiver: sms received
2015-09-06 11:59:55 [31888] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2015-09-06 11:59:56 [31888] [8] DEBUG: boxc_receiver: sms received
2015-09-06 11:59:56 [31888] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>

my bearerbox.log is empty
services are running:

root@public:~# ps fax |grep box --color=auto
32369 pts/3    S+     0:00  |       \_ grep box --color=auto
31718 ?        Ss     0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bearerbox.pid --no-extra-args /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf
31888 ?        Sl     0:05  \_ /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf
31726 ?        Ss     0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_wapbox.pid --no-extra-args /usr/sbin/wapbox -v 4 -- /etc/kannel/kannel.conf
31730 ?        Ss     0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_smsbox.pid --no-extra-args /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf
31898 ?        Sl     0:00  \_ /usr/sbin/smsbox

some more from smsbox.log:

2015-09-06 12:18:11 [777] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2015-09-06 12:18:11 [777] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 777.
2015-09-06 12:18:11 [777] [0] DEBUG:   dumping group (sendsms-user):
2015-09-06 12:18:11 [777] [0] DEBUG:     <group> = <sendsms-user>
2015-09-06 12:18:11 [777] [0] DEBUG:     <default-smsc> = <none>
2015-09-06 12:18:11 [777] [0] DEBUG:     <max-messages> = <300>
2015-09-06 12:18:11 [777] [0] DEBUG:     <username> = <user>
2015-09-06 12:18:11 [777] [0] DEBUG:     <concatenation> = <true>
2015-09-06 12:18:11 [777] [0] DEBUG:     <password> = <password>
2015-09-06 12:18:11 [777] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 777.
2015-09-06 12:18:11 [777] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
2015-09-06 12:18:11 [777] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 777.
2015-09-06 12:18:11 [777] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
2015-09-06 12:18:11 [777] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 777.
2015-09-06 12:18:11 [777] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 777.
2015-09-06 12:18:11 [777] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
2015-09-06 12:18:11 [777] [0] INFO: Connected to bearerbox at public.adm port 13001.
2015-09-06 12:18:11 [777] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
2015-09-06 12:18:11 [777] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 777.

playsms.log:
the smsc:[] is empty…

10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L2 sendsms # start uid:1 sender_id:[+31638738598] smsc:[]
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L3 sendsms # maxlen:1530 footerlen:7 footer:[ @admin] msglen:5 message:[still]
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L2 sendsms_queue_create # saving queue_code:efa4a562338b4b63211fc65b0b862cfc src:+31XXXXXXXXX scheduled:2015-09-06 13:12:19
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L2 sendsms_queue_create # saved queue_code:efa4a562338b4b63211fc65b0b862cfc id:46
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[0000000000]
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[+00000000]
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L3 simplerate_hook_rate_getbyprefix # found rate id:1 prefix:31 rate:0.000 description:NL to:+000000
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:12 unicode:0 to:+000000000 enable_credit_unicode:0 count:1 rate: charge:0
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L2 sendsms # dst:1 sms_count:1 total_charges:0
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L2 sendsms_queue_push # saving queue_code:efa4a562338b4b63211fc65b0b862cfc dst:+00000000
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L2 sendsms_queue_push # saved queue_code:efa4a562338b4b63211fc65b0b862cfc smslog_id:49
10.205.25.101 public.adm 2015-09-06 13:12:19 PID55ec1f9346e19 admin L2 sendsms # end queue_code:efa4a562338b4b63211fc65b0b862cfc queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

Look for sendsmsd right after those logs

Anton

hm… I am not any smarter:(

ps fax |grep sendsmsd
3087 pts/3    S      0:55 /usr/bin/php -q /usr/local/bin/playsmsd /etc/playsmsd.conf sendsmsd

but that is there all the time

I meant, you’re pasting the log with “sendsms” on it (etc: admin L2 sendsms), now, please paste more with “sendsmsd” on it

sendsms is the activity saving your SMS to database (queue)
sendsmsd is the activity reading your database (queue) and actually send it to gateway (smsc)

in order to know where/how your SMS sent then we need to know if playSMS actually process it or not, or there might be an error while processing it

anton

I see… I haven’t found nothing in any log with “sendsmsd” …

 grep sendsmsd /var/log/playsms/*.*
 grep sendsmsd /var/log/kannel/*.*

It means it haven’t sent by playSMS

Have you created an smsc in playSMS ? Have you routed to it properly?

Anton

i followed the how-to.
The smsc (kannel) is in, and its set as default. With, or without outgoing sms route it behaves the same. Shall I try to remove the smsc and add it again?

What does ‘module sender id’ do?

You need to add an smsc and then route sms to it or set as default in settings -> main config (default smsc)

You should see “sendsmsd” in playsms.log

Anton

I understand that, and i did that.

I have communication with kannel, but no “sendsmsd” in playsms.log

another hint:
Is it ok that ‘playsms_gatewayKannel’ is NOT in mysql?
Nothing with kannel in tables

and this is DB query:
im kind of mising the ‘smsc’ in the query

296 Init DB	playsms
		  296 Query	INSERT INTO playsms_tblSMSOutgoing_queue (queue_code,datetime_entry,datetime_scheduled,uid,gpid,sender_id,footer,message,sms_type,unicode,smsc,flag) VALUES ('c2064c5355d3d95d90613e8fb77035dd','2015-09-07 10:41:24','2015-09-07 10:41:24','1','0','+31XXXXXXXXX','@admin','hee..','text','0','','2')

Seems like you have a broken installation, can you try to reinstall?

The table you mentioned is not used anymore, but still if its new then try to reinstall the latest version, 1.3

Anton

ok, reinstall with the script didnt help, i will try manually.

Is your playsmsd run as root ? If not you need to make sure that it can write to playsms.log

it runs as root, and it writes to the logs.

im installing manually, if it makes any difference.

if not, i will install it on clean Debian.

nope, still the same:(

Do you think i should try it on clean Debian?

Also strange: the sms are showing in queue (reports/queue), than i restart playsms, they disappear, when i send a new one it wont appear

ok, since you’re just reinstalling, lets try again, forget everything before this chat.

now, from linux console please make sure that playsmsd is running, run:

playsmsd check

and then do this also on linux console:

tail -f /var/log/playsms/playsms.log | tee debut1.txt

and then open your browser and browse playsms, login as admin and send 1 SMS, 1 SMS only

back to your linux console, ctrl+C the tail tee and edit debug1.txt, replace (don’t remove) any sensitive information such as numbers to something like XXXX…

paste here the debug1.txt

an example of a complete debug log: PlaySMS and integrating users from an AD, adding contacts through .csv and group management

anton