Skip to content

Router system for SMS sending #4

@manuel-rubio

Description

@manuel-rubio

It's important, with several providers, establish some rules for send SMS. Based on the usual rules we can provide:

  • date/time rules
  • destination prefix rules

Also we can add support to use a caller id or presentation id depending on the same rules.

An example of configuration could be:

{routes, [
    {time, {from, {0, 0, 0}}, {until, {6, 59, 59}},
        {prefixes, ["33", "34", "35", "36"]},
            {prov, lleida}
        }
    },
    {default, lleida}
]}.

The rules are recursive so, you can combine as much as you want. The format is:

  • {time, {from, time()}, {until, time()}, rule()}
  • {days, [0..6], rule()}
  • {date, date(), rule()}
  • {prefixes, [string()], rule()}
  • {prov, provider()}
  • {default, provider()}

When a full rule (with all of their children match, the rules is applied. Else the system check the next rule. default match with everything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions