getChannelVariable

Reading Time: 1 minute

Queries an IVR channel variable.

Description

vcc.getChannelVariable(name: string): string

Channel variables can be set via inbound settings. See Inbound Calls section.

Parameters

name
Name of the channel variable.

Return values

string – Value of the channel variable or null if there is no such variable.

Example

We want to store the DTMF that the client provided via IVR.

const ivr = vcc.getChannelVariable('code');
vcc.setFieldValue('ivr_code', ivr);

There are no comments yet.
Subscribe to our newsletter
or Contact us!
Please note that by subscribing to our newsletter, you agree to receive regular email messages from VCC Live® about service related news and updates. By subscribing to our newsletter, you also agree that VCC Live® will use your data in accordance with the applicable Privacy Policy until you unsubscribe from the newsletter.