Hi,
Can you just re install from the start? Start fresh.
Or at least try in VirtualBox see what its like on fresh installed playSMS and compare them.
Anton
Hi,
Can you just re install from the start? Start fresh.
Or at least try in VirtualBox see what its like on fresh installed playSMS and compare them.
Anton
Yeah, I can do that I guess.
So things thats handy to take backup of is database info, login screen and start screen. Along with daemon config and script, I guess?
Whatās the easiest way to delete playSMS for a fresh install? (Is there a script written for it? If not, which folders do I have to delete?)
Edit: when I updated to 1.1 I noticed that you hadnāt updated to my most recent upload, is that done now? Else Iāll have to change the files manually again to the newest after installing 1.1 fresh. In the language thread, itās the most recent upload in the language thread.
Ok, I werenet able to add more contacts with the same number when trying to import groups from the previous database, so thats something that I will have to add manually again (ugh )
I am however able to add more contacts with the same number when Iām not trying to do that, so thats great.
I have one problem though, Iām currently unable to send SMS, I might be missing something obvious here, Iāll blame my lack of sleep after the vacation
This is the log:
10.65.22.57 10.65.22.98 2015-08-03 11:12:42 PID55bf308a87582 HKIT L2 sendsms # start uid:2 sender_id:[1234] smsc:[]
10.65.22.57 10.65.22.98 2015-08-03 11:12:42 PID55bf308a87582 HKIT L2 sendsms_queue_create # saving queue_code:c639af66053297196d42e3292c3a1468 src:1234 scheduled:2015-08-03 11:12:42
10.65.22.57 10.65.22.98 2015-08-03 11:12:42 PID55bf308a87582 HKIT L2 sendsms_queue_create # saved queue_code:c639af66053297196d42e3292c3a1468 id:3
10.65.22.57 10.65.22.98 2015-08-03 11:12:42 PID55bf308a87582 HKIT L2 sendsms # dst:1 sms_count:1 total_charges:0
10.65.22.57 10.65.22.98 2015-08-03 11:12:42 PID55bf308a87582 HKIT L2 sendsms_queue_push # saving queue_code:c639af66053297196d42e3292c3a1468 dst:004747275267
10.65.22.57 10.65.22.98 2015-08-03 11:12:42 PID55bf308a87582 HKIT L2 sendsms_queue_push # saved queue_code:c639af66053297196d42e3292c3a1468 smslog_id:3
10.65.22.57 10.65.22.98 2015-08-03 11:12:42 PID55bf308a87582 HKIT L2 sendsms # end queue_code:c639af66053297196d42e3292c3a1468 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
Hi,
You should enable logstate 3 (from config.php, look for logstate and change from 2 to 3, then playsmsd restart
)
and test again
anton
Ok, will do when I get back to work tomorrow!
Im struggling with updating to the latest language pack I uploaded tho (you havenāt added it yet, so Iām trying to use the most recent). But it seems like theres something happening with the process between the conversion of the .po to .mo files. I check the .po files, no errors, changes done. Running ./3-regenrating-mo-files.sh /var/www/html/playsms. The script runs, the translation doesnt update. Any idea why this happens? I used to be able to run that script with success. (I thjnk Iām still running the same script as when I just downloaded the 1.1 release, I presume the regenrating script didnāt change since then?)
In 1.1 you need to run 4th script, ./4-compile-all.sh
or just run the ./update-1-2-3-4.sh
anton
Ah, youāve made new scripts, what exactly is the point of the third script at the moment then?
Changed logstate to 3, this is the log after one sent SMS:
127.0.0.1 127.0.0.1 2015-08-03 18:53:19 PID55bf9c7f93d74 admin L2 logout # u:admin uid:1 status:2 sid:p8it53u26h5unuitcefbqviml3 ip:127.0.0.1
127.0.0.1 127.0.0.1 2015-08-03 18:53:26 PID55bf9c86316a8 - L2 auth_validate_login # valid login u:HKIT uid:2 ip:127.0.0.1
127.0.0.1 127.0.0.1 2015-08-03 18:53:26 PID55bf9c86316a8 - L2 login # u:HKIT uid:2 status:2 sid:p8it53u26h5unuitcefbqviml3 ip:127.0.0.1
10.65.22.98 10.65.22.98 2015-08-03 19:11:57 PID55bfa0dd5210b - L2 auth_validate_login # valid login u:HKIT uid:2 ip:10.65.22.98
10.65.22.98 10.65.22.98 2015-08-03 19:11:57 PID55bfa0dd5210b - L2 login # u:HKIT uid:2 status:2 sid:p3gbu3c2c5lkf5dq04hrcufab0 ip:10.65.22.98
127.0.0.1 127.0.0.1 PID55bfa18dc612f - L2 init # WARNING: possible CSRF attack. sid:p8it53u26h5unuitcefbqviml3 ip:127.0.0.1
127.0.0.1 127.0.0.1 2015-08-03 19:14:59 PID55bfa193dd46a - L2 auth_validate_login # valid login u:HKIT uid:2 ip:127.0.0.1
127.0.0.1 127.0.0.1 2015-08-03 19:15:00 PID55bfa193dd46a - L2 login # u:HKIT uid:2 status:2 sid:p8it53u26h5unuitcefbqviml3 ip:127.0.0.1
10.65.22.58 10.65.22.98 2015-08-04 07:48:48 PID55c05240e3dd7 - L2 auth_validate_login # valid login u:HKIT uid:2 ip:10.65.22.58
10.65.22.58 10.65.22.98 2015-08-04 07:48:49 PID55c05240e3dd7 - L2 login # u:HKIT uid:2 status:2 sid:ic60hu1ktntv0ic4mco19s04q6 ip:10.65.22.58
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L2 sendsms # start uid:2 sender_id:[1234] smsc:[]
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L3 sendsms # maxlen:459 footerlen:6 footer:[ @HKIT] msglen:4 message:[Test]
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L2 sendsms_queue_create # saving queue_code:a2ec3f3680716a8eb2e74f50a340bc43 src:1234 scheduled:2015-08-04 07:50:59
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L2 sendsms_queue_create # saved queue_code:a2ec3f3680716a8eb2e74f50a340bc43 id:4
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L3 sendsms_manipulate_prefix # before prefix manipulation:[004747275267]
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L3 sendsms_manipulate_prefix # after prefix manipulation:[004747275267]
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L3 simplerate_hook_rate_getbyprefix # rate not found to:004747275267 default_rate:0
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L3 simplerate_hook_rate_getcharges # uid:2 u:HKIT len:10 unicode:0 to:004747275267 enable_credit_unicode:0 count:1 rate: charge:0
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L2 sendsms # dst:1 sms_count:1 total_charges:0
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L2 sendsms_queue_push # saving queue_code:a2ec3f3680716a8eb2e74f50a340bc43 dst:004747275267
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L2 sendsms_queue_push # saved queue_code:a2ec3f3680716a8eb2e74f50a340bc43 smslog_id:4
10.65.22.58 10.65.22.98 2015-08-04 07:50:59 PID55c052c2c3d74 HKIT L2 sendsms # end queue_code:a2ec3f3680716a8eb2e74f50a340bc43 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
EDIT: Used SMS3 (SMS Server Tools 3 - I guess, I based myself on a project someone else ran at the office), not sure if thats whats used. In manage plugins I donāt seem to be able to change things? Is the problem related to this maybe?
You are using gateway dev, which mean you donāt send anywhere, its a demo dev
Please configure outgoing router properly
anton
Where do I actually change the routing then? I canāt see anything interactive in manage plugin?
EDIT: If its the SMSC option under the main configuration I can only choose between dev and blocked.
EDIT2: Seems like something has happened to the smstools3 install, Iāll reinstalling it.
Where do you read the manual that tells you to even check manage plugin ?
The routing is from Manage gateway and smsc and Route outgoing SMS
Anton
Didnāt read the manual, just browsed the system. Later after reinstalling sms tools 3 I noticed it and added a smstools gateway.
Reading from https://github.com/antonraharja/book-playsms/blob/master/book-contents/en/Installation/Gateway-Installation/SMS-Server-Tools-3/SMS-Server-Tools-3-installation-from-source-on-Ubuntu.md that the SMSC name needs to be the same as the modem name. I presume that refers to the name thats given in the smsd.conf file.
When comparing my old smsd.conf I can see that theres been new additions since I last installed the sms tools package. Are these vital to get it to work since 1.1? At the moment Iām still using the old one. Iāll try to send a sms now and Iāll link the log again presuming I donāt get a SMS. After sending the log Iāll compare the new smsd.conf to the new one and Iāll try to get the neeeded information into the new one.
EDIT: under Edit SMSC, theres an option to fill in receiver number and query directory. Are these needed? Asked the one that installed the previous one a few months back (0.9.2.2) and he canāt recall if he had to do that or not.
The log:
10.65.22.58 10.65.22.98 2015-08-04 12:16:55 PID55c09115f282a HKIT L3 main_config # main configuration saved. uid:2
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L2 sendsms # start uid:2 sender_id:[1234] smsc:[]
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L3 sendsms # maxlen:459 footerlen:6 footer:[ @HKIT] msglen:11 message:[Testmessage]
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L2 sendsms_queue_create # saving queue_code:e8853980b9921bca6438dbe90f8ddd59 src:1234 scheduled:2015-08-04 12:17:08
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L2 sendsms_queue_create # saved queue_code:e8853980b9921bca6438dbe90f8ddd59 id:12
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L3 sendsms_manipulate_prefix # before prefix manipulation:[004747275267]
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L3 sendsms_manipulate_prefix # after prefix manipulation:[004747275267]
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L3 simplerate_hook_rate_getbyprefix # rate not found to:004747275267 default_rate:0
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L3 simplerate_hook_rate_getcharges # uid:2 u:HKIT len:17 unicode:0 to:004747275267 enable_credit_unicode:0 count:1 rate: charge:0
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L2 sendsms # dst:1 sms_count:1 total_charges:0
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L2 sendsms_queue_push # saving queue_code:e8853980b9921bca6438dbe90f8ddd59 dst:004747275267
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L2 sendsms_queue_push # saved queue_code:e8853980b9921bca6438dbe90f8ddd59 smslog_id:12
10.65.22.58 10.65.22.98 2015-08-04 12:17:08 PID55c091248601f HKIT L2 sendsms # end queue_code:e8853980b9921bca6438dbe90f8ddd59 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
Alright, I notice that I have no modem1 folder though. Is this supposed to be generated? I still havenāt switched to the new config.
Old config thats still in use: smsd.conf (705 Bytes)
You should follow at least one manual completely. Please follow the book.
I understand you already installed previous version, but it seems the upgrade was failed. So I suggested you to fresh install. I think you followed my suggestion. If you did, please follow the manual completely, not just installing playSMS but also the gateway in this case smstools3. Forget all previous config if you must.
anton
I reinstalled smstools, but the directories and the config file was still around, so those werent overwritten. (folders are empty anyway, shouldnt be a problem). If you look at the current config-file, the only difference I see is that the device name is wavecom.
Should I just switch modem1 with wavecom whereever I see modem1 in the new config-file then?
EDIT: anyways, I guess I could just run the sms tools uninstall script and to do a complete clean install on the sms tools as well.
no need, you just need to adjust your smstools, following my example
hold a sec, let me adjust that for you
anton
here is your adjusted smsd.conf:
smsd.conf (807 Bytes)
make sure that this smsd.conf replaces your current smsd.conf and do these commands:
mkdir -p /var/log/sms/stats
mkdir -p /var/spool/sms/{checked,failed,incoming,outgoing,sent}
chown www-data:www-data -R /var/spool/sms
From web your SMSC name should be modem1, not wavecom.
The Queue directory must be /var/spool/sms/modem1
.
anton
Getting an error when attempting to start the the sms3 daemon:
/etc/init.d/sms3 start
Starting SMS Daemon: Queues are used, but modem1 is not served by any modem
There was 2 major problems found.
Cannot start. See the log file for details.
smsd failed.
Looking for the log file, not sure where it is. Edit: found it (/var/log/sms/smsd.log). The last line in that file, however, is from 2.5hrs ago. Where I stopped the process.
Also first time I tried to start the daemon after doing what you said, it said that there was no modem1 directory, so I had to create it, is this normal?
ah forgot the queue option, add queue = modem1
on the last line:
# wavecom USB
[modem1]
#init = AT+CNMI=2,0,0,2,1
init = AT+CNMI=1,0,0,2,0
device = /dev/ttyUSB0
incoming = yes
baudrate = 115200
report = yes
primary_memory = SM
secondary_memory = SR
queues = modem1
if you create modem1
directory your self then you need to chown www-data:www-data
again
anton