Clean Mobile Valve
Use this valve to clean up mobile numbers, i.e. remove whitespaces and unwanted characters.
Configuration
Section titled “Configuration”| Name | Description | Default value | Mandatory | Expanded |
|---|---|---|---|---|
src | Source parameter for the mobile number. | "${item.mobile}" | ||
dest | Destination parameter for the cleaned mobile number. | N/A | ||
recipient_prefix | Prefixes mobile number if it starts with '0'. | "+46" | ||
force_prefix | Always add prefix. | false | ||
remove_leading_plus | Remove + | false | ||
convert_double_zero_prefix | Converts initial 00 to +. 0046 becomes +46. | true |
{ "name": "CleanMobile", "enabled": true, "config": { "src": "${session.mobile}", "dest": "clean_mobile", "recipient_prefix": "+45", "force_prefix": true, "remove_leading_plus": false, "convert_double_zero_prefix": true }}