Problem with send sms to group

Hi,
My configuration:
Hardware: RaspberryPI 3
Modem: Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Software: Linux raspberrypi 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux
I read tutorial: https://www.howtoforge.com/tutorial/how-to-install-raspberry-pi-sms-server/

Problem:
I can sand sms from playsms, everythink is work fine if i send message by types one or many numbers in field “Sand to”. Problem is when i want send to group from Phonebook massenge is not sending.
Playsms not transfered any data to smstools3.

/var/log/smsd.log not have any information about this.

Log from playsms:

192.168.200.8 192.168.130.50 2016-06-14 21:51:23 PID5760603aa4ead admin L2 sendsms # start uid:1 sender_id:[Wojtek] smsc:[]
192.168.200.8 192.168.130.50 2016-06-14 21:51:23 PID5760603aa4ead admin L2 sendsms_queue_create # saving queue_code:c4b465e2d140e7c288d6e5608ca7500c src:Wojtek scheduled:2016-06-14 21:51:23
192.168.200.8 192.168.130.50 2016-06-14 21:51:23 PID5760603aa4ead admin L2 sendsms_queue_create # saved queue_code:c4b465e2d140e7c288d6e5608ca7500c id:41
192.168.200.8 192.168.130.50 2016-06-14 21:51:23 PID5760603aa4ead admin L2 sendsms # dst:0 sms_count:0 total_charges:0
192.168.200.8 192.168.130.50 2016-06-14 21:51:23 PID5760603aa4ead admin L2 sendsms # end queue_code:c4b465e2d140e7c288d6e5608ca7500c queue_count:0 sms_count:0 failed_queue:0 failed_sms:0

Please help me!!! Thanks!!:slight_smile:

set loglevel to 3 so that we can see L3 log messages

anton

Hi Anton!
I set /var/www/html/playsms/config.php

// log level: 0=disabled, 1=info, 2=warning, 3=debug, 4=verbose
// WARNING: log level 3 and 4 will also save sensitive information such as password for used gateway
$core_config[‘logstate’] = 3;

Restart playsms
playsmsd /etc/playsmsd.conf stop
playsmsd /etc/playsmsd.conf start

Logs is similar:

_192.168.44.204 192.168.130.50 2016-06-15 09:53:25 PID576109752efcf admin L2 sendsms # start uid:1 sender_id:[Wojtek] smsc:[]_
_192.168.44.204 192.168.130.50 2016-06-15 09:53:25 PID576109752efcf admin L3 sendsms # maxlen:459 footerlen:7 footer:[ @admin] msglen:19 message:[Wiadomość Testowa]_
_192.168.44.204 192.168.130.50 2016-06-15 09:53:25 PID576109752efcf admin L2 sendsms_queue_create # saving queue_code:a62e95c26bdb865029974900769ba4c1 src:Wojtek scheduled:2016-06-15 09:53:25_
_192.168.44.204 192.168.130.50 2016-06-15 09:53:25 PID576109752efcf admin L2 sendsms_queue_create # saved queue_code:a62e95c26bdb865029974900769ba4c1 id:44_
_192.168.44.204 192.168.130.50 2016-06-15 09:53:25 PID576109752efcf admin L2 sendsms # dst:0 sms_count:0 total_charges:0_
_192.168.44.204 192.168.130.50 2016-06-15 09:53:25 PID576109752efcf admin L2 sendsms # end queue_code:a62e95c26bdb865029974900769ba4c1 queue_count:0 sms_count:0 failed_queue:0 failed_sms:0_

Looks like the group has no member

anton

You have right, i sens to “IT” not #IT … Now i send #IT and logs looks like this but massenge is now send :frowning:

- 2016-06-15 11:59:14 PID57612668286ab - L2 smstools_hook_getsmsinbox # DLR received message_id:16 status:0 info1:[Ok] info2:[short message received by the SME] smsc:[modem1]
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L2 sendsms # start uid:1 sender_id:[Ampol-Merol] smsc:[]
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L3 sendsms # maxlen:459 footerlen:7 footer:[ @admin] msglen:26 message:[Hi u there, good morning!!]
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L2 sendsms_queue_create # saving queue_code:7b0233feceba05c88bb2fcddc6921dbe src:Ampol-Merol scheduled:2016-06-15 11:59:28
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L2 sendsms_queue_create # saved queue_code:7b0233feceba05c88bb2fcddc6921dbe id:48
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[48698783936]
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[48698783936]
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[48608070961]
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[48608070961]
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:48698783936 default_rate:0
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:33 unicode:0 to:48698783936 enable_credit_unicode:0 count:1 rate: charge:0
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:48608070961 default_rate:0
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:33 unicode:0 to:48608070961 enable_credit_unicode:0 count:1 rate: charge:0
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L2 sendsms # dst:2 sms_count:2 total_charges:0
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L2 sendsms_queue_push # saving queue_code:7b0233feceba05c88bb2fcddc6921dbe dst:48698783936
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L2 sendsms_queue_push # saved queue_code:7b0233feceba05c88bb2fcddc6921dbe smslog_id:45
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L2 sendsms_queue_push # saving queue_code:7b0233feceba05c88bb2fcddc6921dbe dst:48608070961
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L2 sendsms_queue_push # saved queue_code:7b0233feceba05c88bb2fcddc6921dbe smslog_id:46
192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L2 sendsms # end queue_code:7b0233feceba05c88bb2fcddc6921dbe queue_count:2 sms_count:2 failed_queue:0 failed_sms:0

root@raspberrypi:/home/pi# tail -f /var/log/smsd.log

2016-06-15 11:56:48,2, smsd: Smsd v3.1.15 started.
2016-06-15 11:56:48,2, smsd: Running as root:root.
2016-06-15 11:56:48,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-06-15 11:56:48,5, smsd: Outgoing file checker has started. PID: 31456.
2016-06-15 11:56:48,5, modem1: Modem handler 0 has started. PID: 31458.
2016-06-15 11:56:48,5, modem1: Using check_memory_method 1: CPMS is used.
2016-06-15 11:56:48,3, modem1: Unexpected input: OK ^RSSI:15 ^HCSQ:"LTE",39,33,126,26
2016-06-15 11:56:52,5, modem1: CGSN: 866133027683400
2016-06-15 11:56:52,5, modem1: IMSI: 260021371216361

after your last log:

192.168.44.204 192.168.130.50 2016-06-15 11:59:28 PID5761270007bb2 admin L2 sendsms # end queue_code:7b0233feceba05c88bb2fcddc6921dbe queue_count:2 sms_count:2 failed_queue:0 failed_sms:0

it should be followed by something like this:

- - 2016-06-15 16:46:44 PID57612404586a1 - L2 sendsmsd # start processing queue_code:16e3018a77d1582939929707c5966926 chunk:0 queue_count:2 sms_count:2 scheduled:2016-06-15 16:46:44 uid:1 gpid:0 sender_id:1234

sendsmsd # start processing…

anton

But i dont have nothing more…
Any idea?

Is very strange, i can send sms to one but no to group.

Ok… i dont change anything but now i cant sand to anyone,

 - 2016-06-15 21:19:51 PID5761aa247baa3 - L2 smstools_hook_getsmsinbox # DLR received message_id:17 status:0 info1:[Ok] info2:[short message received by the SME] smsc:[modem1]
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L2 sendsms # start uid:1 sender_id:[Wojciech] smsc:[]
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L3 sendsms # maxlen:459 footerlen:7 footer:[ @admin] msglen:26 message:[Hi u there, good morning!!]
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L2 sendsms_queue_create # saving queue_code:f9ff967ca7503e2e20692a7b45c73724 src:Wojciech scheduled:2016-06-15 21:20:03
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L2 sendsms_queue_create # saved queue_code:f9ff967ca7503e2e20692a7b45c73724 id:50
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L3 sendsms_manipulate_prefix # before prefix manipulation:[48698783936]
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L3 sendsms_manipulate_prefix # after prefix manipulation:[48698783936]
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L3 simplerate_hook_rate_getbyprefix # rate not found to:48698783936 default_rate:0
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:33 unicode:0 to:48698783936 enable_credit_unicode:0 count:1 rate: charge:0
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L2 sendsms # dst:1 sms_count:1 total_charges:0
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L2 sendsms_queue_push # saving queue_code:f9ff967ca7503e2e20692a7b45c73724 dst:48698783936
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L2 sendsms_queue_push # saved queue_code:f9ff967ca7503e2e20692a7b45c73724 smslog_id:48
192.168.200.8 192.168.130.50 2016-06-15 21:20:03 PID5761aa631780a admin L2 sendsms # end queue_code:f9ff967ca7503e2e20692a7b45c73724 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

Like I said before you have to see the “sendsmsd” entries on log.

If you didn’t see it than probably playsmsd was not running.

anton

Ok i understand but i restart playsms, how i can check?

root@raspberrypi:/home/pi# playsmsd /etc/playsmsd.conf stop
schedule at pid 1981 will be killed..
dlrssmsd at pid 1983 will be killed..
recvsmsd at pid 1985 will be killed..
sendsmsd at pid 1987 will be killed..
playsmsd has been stopped
root@raspberrypi:/home/pi# playsmsd /etc/playsmsd.conf start
playsmsd has been started
schedule at pid 10459
dlrssmsd at pid 10461
recvsmsd at pid 10463
sendsmsd at pid 10465