Hello,
I am looking to setup a real-time alert when International calls are dialed. I am not seeing anyway to do this natively in the trunk, site or organization settings. So, I turned to Triggers, which look like they could do the trick, but I am having some issues with configuration.
I have a trigger configured for the "v2.detail.events.conversation.{id}.user.start" topic name. The Trigger is looking at the following JSON Paths from the Schema:
direction == "OUTBOUND"
mediaType == "VOICE"
DNIS exists True (so the variable can be sent to the workflow consistently for use in the email notification)
Where I am having issues, is identifying an international call. It would be nice to have a DOES NOT CONTAIN operator so I can act on the DNIS with does not contain. I have tried a bunch of operators against the DNIS value with little success.
I have this trigger setup to go to a simple workflow configured to send an email when this event occurs. At this point the email from the workflow only contains a copy of the DNIS for confirmation, I will build that out later once I get the alert working as expected. I can get this Trigger working perfectly if I have DNIS == (My cell phone number) and make an outbound call to my cell phone, so I know the Trigger and Workflow are working as expected.
Has anyone done this, or does anyone have ideas?
As always, thanks in advance!
#ArchitectureandDesign
#SystemAdministration
#Telephony
------------------------------
JoeU
------------------------------