[arm-allstar] Message texto

Doug Crompton wa3dsp at gmail.com
Sat Mar 16 19:33:00 EDT 2019


The problem with the web service SMS providers is that while they were once
free for limited use most now have a charge for any use. The best free way
to do it is to setup simple mail transfer in Linux as documented below.
This will allow you to send BOTH emails and SMS text messages to yourself
or anyone for free.

*Sending Mail or Text Messages via the Linux Command Line*

To setup you Allstar server to send mail you will need to establish an MTA
to send your mail. The easiest is GMAIL. You will probably need to login to
your GMAIL account to setup an additional password.

Go to this site -

https://wiki.archlinux.org/index.php/SSMTP

You will need to download the SSMTP package.

pacman -Sy ssmtp

Follow the instructions on this page to setup the config file. It shows an
example for GMAIL that works assuming you have an account, In any case you
will need an email server and GMAIL is a good choice.

Use the test to see if works by sending yourself a message.

Example send messages -

- Testing:

# echo -n 'Subject: test message' | sendmail -v
destination_user at destination_domain

- Send to voip.ms to SMS number:

# echo -n 'Subject:2155551212' | sendmail -v sms at voip.ms

- Send to AT&T SMS number:

# sendmail 2155551212 at txt.att.net <2154316307 at txt.att.net>

Each SMS provider has a different email address. Here is a list for most -

SMS provider emails -
https://20somethingfinance.com/how-to-send-text-messages-sms-via-email-for-free/


- Example to notify of problem:

Save as a file – example - /etc/asterisk/local/powerdown.txt

To:username at example.com
From:youraccount at gmail.com
Subject:Power Down

This is to notify you your system power is down

Save as a file – example - /etc/asterisk/local/powerup.txt

To:username at example.com
From:youraccount at gmail.com

Subject:Power up

This is to notify you that the power is back up.

Then in the power fail script at the appropriate places call send mail -


For power down - # sendmail -t < /etc/asterisk/local/powerdown.txt

and

For power up - # sendmail -t < /etc/asterisk/local/powerup.txt


This is just a sample alert. You can do it for anything that you want. Test
a parameter and if it is out of wack send yourelf a message.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*

On Sat, Mar 16, 2019 at 5:35 PM "Danny K5CG via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:

> This can be done via a one line email command sent to the email address
> for your pone as defined by your carrier but I would recommend using a push
> notifications like pushover.net. Notifications are instant and it's free
> for up to 750 notifications per month.
>
> Danny
> K5CG
>
> ----- Original Message -----
> From: "ARM Allstar" <arm-allstar at hamvoip.org>
> To: "ARM Allstar" <arm-allstar at hamvoip.org>
> Cc: "Luc Drolet VE2LUQ" <ldrolet at cgocable.ca>, "wa3dsp" <wa3dsp at gmail.com>
> Sent: Saturday, March 16, 2019 3:48:01 PM
> Subject: [arm-allstar] Message texto
>
> Hello Doug,
>
> Thank you for your expertise and your time, it’s greatly appreciated.
>
> This is to tell you that everything works fine with the script «
> power_fail_check.sh »
> I now receive the log of « power failure » on the USB key as well as
> hearing the automatic message on the air.
>
> I have another question regarding this: is it possible to have a text
> message on our cell phones when we have a power failure and another one
> when it turns back on?
> This is to ensure the repeaters work properly since I'm not always on the
> air.
>
> For example of a text message I could receive: power fail - NODE1400 or
> power_fail_set - NODE1400
>
> Thank you for your excellent work,
> 73’s
> Luc
> VE2LUQ
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org


More information about the ARM-allstar mailing list