Skip to content

verticallabs/gogammu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gogammu is binding for SMS related functions of libGammu (documentation).

gogammu/smsd is simple, MySQL based, SMS daemon, written entirely in Go (it doesn't depend on Gammu SMSd).

  1. It receives messages from phone and saves them in Inbox.
  2. It waits for network connections (unix domain sockets to) and saves messages in Outbox.
  3. It sends messages from Outbox, waits for delivery reports and deletes messages if necessary.
  4. It sends logs to stderr or to specified file. You have to send HUP signal to smsd after rotating its log file.

For run it in background use runit or daemontools.

gogammu/sms simple library that implements smsd protocol. Use it for sending messages via smsd (documentation).

Protocol description

Client sends:

FROM                                - symbol of source (<=16B)
PHONE1[=DSTID1] PHONE2[=DSTID2] ... - list of phone numbers and dstIds
Lines that contain optional parameters, one parameter per line: NAME or
NAME VALUE. Implemented parameters:
    report - report required
    delete - delete message after sending (wait for reports, if required)
                     - Empty line
Message body (UTF-8)
.                    - '.' as first and only character in line

Server replies with 'OK' line or with error message and disconnects.

Client reads response and disconnects.

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%