Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Router system for SMS sending #4

Open
manuel-rubio opened this issue Apr 11, 2016 · 0 comments
Open

Router system for SMS sending #4

manuel-rubio opened this issue Apr 11, 2016 · 0 comments

Comments

@manuel-rubio
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant