Code Monkey home page Code Monkey logo

gogammu's Introduction

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.

gogammu's People

Contributors

michalderkacz avatar yarons avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.