Reputation: 9359
Using the new actions I want to be able to easily filter if the user is on the phone or the web, to give different responses. It doesn't have an option to set this.
Upvotes: 0
Views: 84
Reputation: 2430
you can use the following attribute via editing the JSON response to have different responses per channel.
In addition there are context variables that you can condition upon.
Upvotes: 1
Reputation: 9359
Using the V1 logging mechanism you can pull the user logs and compare differences across user channels.
In the context object when telephony is being used, there is a number of variables that are needed in that channel. Checking for one of those variables will allow you to filter.
For the new actions phone channel feature the following conditional will return true if it is being used.
context?.has("vgwSIPFromURI")
Upvotes: 0