check_mk-plugins icon indicating copy to clipboard operation
check_mk-plugins copied to clipboard

notify-via-isms: + sign in phone number not compatible with all gateways

Open kucert opened this issue 4 years ago • 0 comments

My solution:

# replace + by 00 and delete whitespaces
my $phone = $p{CONTACTPAGER};
$phone =~ s/\s+//g;
$phone =~ s/\+/00/g;

And use $phone instead of $p{CONTACTPAGER} for sending

kucert avatar Jan 20 '21 11:01 kucert