DirectNotificationValve

Valveto send notifications over SMS and/or SMTP.

Properties

Name Description Default value Mandatory Supports property expansion
recipient_param_name Parameter containing recipient mobile/mail number Yes Yes
static_recipients List of static recipients No No
use_sms If the notification should be sent with SMS false Yes No
sms_message Message to be sent to SMS recipients No No
sms_wash_recipient_number If the mobile number should be washed. (Removes non numerical characters) true No No
sms_recipient_prefix Removes leading '0' and adds a prefix to the recipient numbers. No No
force_prefix Always add the prefix false No No
sms_remove_leading_plus Removes leading '+' of the recipient numbers false No No
use_smtp If the notification should be sent with SMTP false Yes No
smtp_message Message to be sent to SMTP recipients No No
smtp_removal_prefixes Removes leading prefix of SMTP recipient numbers smtp:,SMTP:,sip: No No

Example Configuration

{
        "name": "DirectNotificationValve",
        "config": { 
              "recipient_param_name":"{{item.mobile}}",
              "use_sms":"true",
              "use_smtp":"false",
              "sms_message":"Notification from auth server",
              "sms_wash_recipient_number":"true",
              "sms_recipient_prefix":"+46"
        }
}

Requirements

Item set must have at least one entry.