Ignition 8.0.3 stable →
Problem:
I am receiving errors trying to acknowledge an alarm via the sms response ack code using the Ignition Twilio Notification module.
Background:
We use a Calculated roster script to pull E.164 formatted numbers out of a postgres database based on custom scheduling/priority levels. I have simply been building a dictionary list of numbers to contact on the SMS alarm pipeline notification block and it has been working fine except for the sms acknowledgement part. (although I get the same results using the “builder” methods in the notification block ) **
** Note: These “users/numbers” are not tied to ignition users in any way, they are just separate numbers stored in a postgres database.
We always use E164-formatted number strings.
Errors/Logs:
When acknowledging an alarm via twilio sms, we get this log print-out:
You can see most of it looks okay, alarm goes out, response body comes back, response bodies match. But, ignition logs say that we “received an Acknowledge for an alarm from a number that wasn’t sent that alarm”.
The more interesting log is right below that one: “Error recognizing phone number”. I expanded those logs as shown below:
the phonenumbers module claims “Missing or invalid default region” which seems to me is crashing the entire sms ack method. Was there an update to that phonenumbers java library that broke this portion of the ack-ing process? Or could it be I have something configured incorrectly?
Thank you!