NAME
App::RemoteGnokii - Send SMS over the internet with gnokii-smsd
SYNOPSIS
use App::RemoteGnokii;
my $config_option = App::RemoteGnokii::cfg 'name';
App::RemoteGnokii::sendsms '0755555555', 'Hello world';
App::RemoteGnokii::action('0755555555', '2014-02-01', 'Goodbye');
DESCRIPTION
RemoteGnokii is a set of scripts that add networking to gnokii-smsd. With them, all messages received are forwarded to a given phone number, and messages can be sent via the HTTP gateway provided by RemoteGnokii.
CONFIGURATION OPTIONS
See below for the location of the configuration file. The following options are recognised:
- number
-
Forward incoming messages to this number (used by rg-action).
- password
-
The password needed to send a message with rg-psgi and included in forwarded messages.
- spool
-
The gnokii-smsd spool directory. Needs to be readable and writable by gnokii-smsd and rg-psgi.
ENVIRONMENT
- RGCONF
-
The basename of the configuration file. For example, if the configuration file is '/srv/rg/config.yml', RGCONF should be set to '/srv/rg/config'. Defaults to '/etc/rg'.
TODO
- Write a section 7 manpage explaining everything
- Add tests
- Add a way to store messages for later retrieval via the webapp, instead of sending them immediately via SMS
AUTHOR
Marius Gavrilescu <marius@ieval.ro>
COPYRIGHT AND LICENSE
Copyright (C) 2014 by Marius Gavrilescu
This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.