-
Notifications
You must be signed in to change notification settings - Fork 0
Router system for SMS sending #4
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels