getChannelVariable

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.

Comment

Subscribe to our newsletter
or Contact us!