SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Thu Mar 28, 2024 12:06
SMSTools3 Community » Help and support Bottom

[solved] Multiple recipients in single SMS file (for newbie)

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Jan 2013
Location: Tegucigalpa, Francisco Morazan, Honduras
Operating system name and version: xubuntu 12.10 / crunchbang 11
Version of smsd: 3.1.14 / 3.1.11 respectively
Smsd installed from: package repository respectively
Name and model of a modem / phone: ZTE MF363
Interface: USB

Hello friends.

I'm really new to linux and English is not my native language (Spanish is). :roll:
I am implementing a newsgathering service for events in my NOC.
SMS Sever help me send a "multicast" several stakeholders defined.

The modem is configured Ok, send and recive sms ok ... just beautiful
I have set the script to deposit the message in the folder "outgoing" ...

Try setting the script in checkhandler ... Ok starts the daemon, but apparently never executed the script, because not send SMS to more than one recipient. In Syslog I have no warning about it, in fact to deposit a formatted text:

To: 1234567
To: 0987654

Text .....

SMS Server sends the SMS to 0987654 only

So I can not make it work the script to send the message to multiple recipients.
I followed the post:


http://smstools3.kekekasvi.com/topic.php?post=332


http://smstools3.kekekasvi.com/topic.php?id=495

But I fear that the problem is not able to run the script in my bash (none).
Something basic, sure... most likely it is a nonsense to the variables ... but I'm going crazy :x

The script already has permits and keep it in "sbin" to have it available to a "tab" while doing debugging.

The problem is that it goes beyond the line 8:




that is (script):




Please help ..!
Any suggestions are welcome ... :? :?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
You probably do not have formail program available? If this is the case, install procmail package which contains it.

Member
Registered:
Jan 2013
Location: Tegucigalpa, Francisco Morazan, Honduras
Topic owner
Hello, the question is, how to make the script is interpreted.
perhaps some library should I use?

My steps were:

1. I create a file (for personal comfort) in "/var/spool/sms/scripts", paste the script *
2. Named as "multisms.sh"
3. I grant permissions: chmod a + x multisms.sh
4. He sent it to sbin: cp /usr/sbin/multisms
5. Edito smsd.config, adding multisms to checkhandler: checkhandler = /usr/sbin/multisms.sh
6. enable:
shell = /bin/bash
executable_check = yes
7. SMSD run the devil and put a test sms/var/spool/sms/outgoing.

The format is:

To: 25678038
To: 27356409

Text ... ...


And the SMS is sent only to the last recipient from the list, in this case 27356409.
But I see that the problem is with the script, run it does not assume that the variables.
I have a great urge to send to múltiple recipients.

Please Help ..!

Member
Registered:
Jan 2013
Location: Tegucigalpa, Francisco Morazan, Honduras
Topic owner
Keke excuse me ... I just post when you answered.
I will try and write you ...
Thank you very much :D

Member
Registered:
Jan 2013
Location: Tegucigalpa, Francisco Morazan, Honduras
Topic owner
It works ...!

My problem was the lack of formail.
I thought "formail" was a standard bash command.
Install procmail and the script works perfect ... and I can already send notifications to multiple stakeholders.

Thank you very much for your support ...!
:mrgreen:

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.