gsgc1
Alamin gsm sms gateway client
Usage
gsgc [--version⎪--help]
gsgc [--configfile
config_file_name]
[--debug⎪--nodebug]
[--verbose⎪--noverbose]
[--copyright⎪--nocopyright]
[--port
port_number]
[--host
host_name]
[--syslog
facility⎪--nosyslog]
[--priority
1-9]
[--smsc
short_message_service_center_number]
[--user
username]
[--password
secret_password]
[[--send
dest_number
[,more_dests] ...
message_content]]
Overview
gsgc is the gateway client. It is used to send commands to the gateway, like send a message, query queue status, etc.
Options
-
--configfile <file_name> -
(default: /etc/alamin/gsgc.conf) Sets the config file to be used. The configfile option is not valid inside a config file (to redirect into another config file). You can put any number of times an option inside the config file, but only the latest is used. Use only lowercase letters. Options specified in the command line have preference over options listed inside a config file.
-
--debug
-
--nodebug -
(default: --debug) You can turn debugging on or off. Just use debug to see all messages in the log.
-
--verbose
-
--noverbose -
(default: --verbose) Set this option if you want to see messages about usual events in the log.
-
--copyright
-
--nocopyright -
(default: --nocopyright) If you set this option, copyright messages will be show every time Alamin starts.
-
--port <tcp_port_number|tcp_service_name> -
(default: smsqp, or 11201 if smsqp does not exist in /etc/services) Port where the gateway server is listening for connections.
-
--host <gateway_host_name> -
(default: gsm) Your gateway name. If you don't want to use this option, just create an alias for your gateway in DNS.
-
--syslog <facility_name>
-
--nosyslog -
(default: local4) Syslog facility to be used to log messages, or nosyslog to avoid using syslog.
-
--priority <level> -
(default: 5) Level is a value from 1 to 9 and it sets the priority of the message. 1 is more important, 9 is less.
-
--smsc <short_message_service_center_number> -
(default: default) When no "--smsc" option is specified gateway preconfigured smsc is used. WARNING: Use only international full numbers, like "+34666123123"
-
--user <username> -
(default: anonymous) The default "anonymous" user does not authenticate. It can only use default allowed services as specified in the "--defallowserv" option of the gateway.
-
--password <secret_password> -
(default: anonymous) Password of the user. Password is not send clearly. A similar protocol to CHAP is used.
Return value
0
|
OK. Command sucessfully completed. |
|---|---|
1
|
Can't connect with server. |
2
|
Protocol error. |
3
|
Message can't be sent. |
4
|
User/password not valid. |
Examples
gsgc --send 123123123 "message text"
gsgc --send 123123123,321321321 "message text"
gsgc --smsc 987987987 --send 123123123 "message text"
gsgc --user username --password secret --send 123123123 "message text"
Files
/etc/alamin/gsgc.conf, client config file.
Releases
3 releases since Debian 3.0 (Woody); the text changed 2 times.