I might have found a bug in /plugin/gateway/smstools/fn.php
When giving the queue path for smstools, the outgoing folder is not correctly specified in fn.php around line 276
It is
$fn = $plugin_config[‘smstools’][‘queue’] . ‘/’ . $outfile;
but should be:
$fn = $plugin_config[‘smstools’][‘queue’] . ‘/outgoing/’ . $outfile;
I am unsure, because I had trouble with that and after I looked at the code, I could se that was missing.
I am using smstools with the following queues in conf.
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
report = /var/spool/sms/report
stats = /var/spool/sms/stats
and in playsms smsc I configured the queue to be:
/var/spool/sms
So in playsms smsc it should automatically find the right folder for different processing.
If recieved then /var/spool/sms/incoming
if sending then /var/spool/sms/outgoing
etc…
My problem was that if in smsc I configure queue to be:
/var/spool/sms/outgoing
then folders will get wrong paths:
$plugin_config[‘smstools’][‘default_queue’] . ‘/sent’
$plugin_config[‘smstools’][‘default_queue’] . ‘/failed’
$plugin_config[‘smstools’][‘default_queue’] . '/incoming’
etc…
where $plugin_config[‘smstools’][‘default_queue’] is my specified path in smsc menu, right?
if your outgoing spool is /var/spool/sms/outgoing then use that in queue directory option in SMSC config
default queue is configured from gateway menu, not SMSC, and defaulted to /var/spool/sms, not following setting on SMSCs
please try to set the queue directory on SMSC (that added from smstools) to your outgoing spool dir (in your case /var/spool/sms/outgoing and then test
been strugling with permissions!
Im running a 1.4.3 version, and the playsmsd is started by playsms user, and the whole /var/spool/sms directory is 777.
The sms are coming as playsms user in modem1!
do I need to start the script as www-data or playsms?
The messages are always with orange/pending and not going through!